Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 62425f6

Browse files
committed
fix and add mixin uri schema
1 parent d79877f commit 62425f6

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

mixinsdk/types/messenger_schema.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def generate_sharing_uri(
3030
uri = f"mixin://send?category={sharing_data.category}"
3131
uri += f"&data={sharing_data.b64encoded_data}"
3232
if conversation_id:
33-
uri += f"&conversation_id={conversation_id}"
33+
uri += f"&conversation={conversation_id}"
3434
return uri
3535

3636

@@ -127,7 +127,13 @@ def pack_payment_uri(
127127
return uri
128128

129129

130-
# TODO: more payment schema types
130+
def pack_user_uri(user_id: str):
131+
uri = f"mixin://users/{user_id}"
132+
return uri
131133

132134

133-
# TODO: other schema types
135+
# def pack_bot_uri():
136+
# """
137+
# action is an optional parameter, the bot pop-up window will open in the absence of it, passing action=open will open the bot homepage; key1=value1&key2=value2&key3=value3... Parameters of any name or type can be passed when opening the bot homepage to facilitate the development of features like invitation codes, visitor tracking, etc.
138+
# """
139+
# url = f"mixin://apps/:appid?action=open&key1=value1&key2=value2&key3=value3..."

0 commit comments

Comments
 (0)