linq-python 0.67.1__py3-none-any.whl → 0.67.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- linq/_version.py +1 -1
- linq/resources/messages/messages.py +72 -8
- linq/types/message_add_reaction_params.py +47 -10
- linq/types/message_update_sticker_placement_params.py +47 -10
- {linq_python-0.67.1.dist-info → linq_python-0.67.2.dist-info}/METADATA +1 -1
- {linq_python-0.67.1.dist-info → linq_python-0.67.2.dist-info}/RECORD +8 -8
- {linq_python-0.67.1.dist-info → linq_python-0.67.2.dist-info}/WHEEL +0 -0
- {linq_python-0.67.1.dist-info → linq_python-0.67.2.dist-info}/licenses/LICENSE +0 -0
linq/_version.py
CHANGED
|
@@ -573,8 +573,24 @@ class MessagesResource(SyncAPIResource):
|
|
|
573
573
|
placement: Optional position, size and rotation of a sticker on the target bubble. Only
|
|
574
574
|
valid when type is "sticker".
|
|
575
575
|
|
|
576
|
-
|
|
577
|
-
|
|
576
|
+
`x` and `y` set where the sticker's centre lands, as a fraction of the target
|
|
577
|
+
bubble's width and height:
|
|
578
|
+
|
|
579
|
+
| Position | `x` | `y` |
|
|
580
|
+
| ------------------- | --- | --- |
|
|
581
|
+
| Top-left corner | 0 | 0 |
|
|
582
|
+
| Top-right corner | 1 | 0 |
|
|
583
|
+
| Centre | 0.5 | 0.5 |
|
|
584
|
+
| Bottom-left corner | 0 | 1 |
|
|
585
|
+
| Bottom-right corner | 1 | 1 |
|
|
586
|
+
|
|
587
|
+
Every field is independent and optional. Omit `x` and `y` and the sticker lands
|
|
588
|
+
on the top-left corner.
|
|
589
|
+
|
|
590
|
+
Position and size are relative to the target bubble, so a sticker keeps its
|
|
591
|
+
place on the bubble on every device. Its size follows the bubble's width: the
|
|
592
|
+
same sticker is drawn smaller on a bubble that a recipient's screen renders
|
|
593
|
+
narrower than the sender's.
|
|
578
594
|
|
|
579
595
|
url: Linq attachment URL of the image — the `download_url` returned by
|
|
580
596
|
`POST /v3/attachments`. Valid when type is "sticker", or when adding a type
|
|
@@ -823,8 +839,24 @@ class MessagesResource(SyncAPIResource):
|
|
|
823
839
|
placement: Optional position, size and rotation of a sticker on the target bubble. Only
|
|
824
840
|
valid when type is "sticker".
|
|
825
841
|
|
|
826
|
-
|
|
827
|
-
|
|
842
|
+
`x` and `y` set where the sticker's centre lands, as a fraction of the target
|
|
843
|
+
bubble's width and height:
|
|
844
|
+
|
|
845
|
+
| Position | `x` | `y` |
|
|
846
|
+
| ------------------- | --- | --- |
|
|
847
|
+
| Top-left corner | 0 | 0 |
|
|
848
|
+
| Top-right corner | 1 | 0 |
|
|
849
|
+
| Centre | 0.5 | 0.5 |
|
|
850
|
+
| Bottom-left corner | 0 | 1 |
|
|
851
|
+
| Bottom-right corner | 1 | 1 |
|
|
852
|
+
|
|
853
|
+
Every field is independent and optional. Omit `x` and `y` and the sticker lands
|
|
854
|
+
on the top-left corner.
|
|
855
|
+
|
|
856
|
+
Position and size are relative to the target bubble, so a sticker keeps its
|
|
857
|
+
place on the bubble on every device. Its size follows the bubble's width: the
|
|
858
|
+
same sticker is drawn smaller on a bubble that a recipient's screen renders
|
|
859
|
+
narrower than the sender's.
|
|
828
860
|
|
|
829
861
|
extra_headers: Send extra headers
|
|
830
862
|
|
|
@@ -1380,8 +1412,24 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
|
1380
1412
|
placement: Optional position, size and rotation of a sticker on the target bubble. Only
|
|
1381
1413
|
valid when type is "sticker".
|
|
1382
1414
|
|
|
1383
|
-
|
|
1384
|
-
|
|
1415
|
+
`x` and `y` set where the sticker's centre lands, as a fraction of the target
|
|
1416
|
+
bubble's width and height:
|
|
1417
|
+
|
|
1418
|
+
| Position | `x` | `y` |
|
|
1419
|
+
| ------------------- | --- | --- |
|
|
1420
|
+
| Top-left corner | 0 | 0 |
|
|
1421
|
+
| Top-right corner | 1 | 0 |
|
|
1422
|
+
| Centre | 0.5 | 0.5 |
|
|
1423
|
+
| Bottom-left corner | 0 | 1 |
|
|
1424
|
+
| Bottom-right corner | 1 | 1 |
|
|
1425
|
+
|
|
1426
|
+
Every field is independent and optional. Omit `x` and `y` and the sticker lands
|
|
1427
|
+
on the top-left corner.
|
|
1428
|
+
|
|
1429
|
+
Position and size are relative to the target bubble, so a sticker keeps its
|
|
1430
|
+
place on the bubble on every device. Its size follows the bubble's width: the
|
|
1431
|
+
same sticker is drawn smaller on a bubble that a recipient's screen renders
|
|
1432
|
+
narrower than the sender's.
|
|
1385
1433
|
|
|
1386
1434
|
url: Linq attachment URL of the image — the `download_url` returned by
|
|
1387
1435
|
`POST /v3/attachments`. Valid when type is "sticker", or when adding a type
|
|
@@ -1630,8 +1678,24 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
|
1630
1678
|
placement: Optional position, size and rotation of a sticker on the target bubble. Only
|
|
1631
1679
|
valid when type is "sticker".
|
|
1632
1680
|
|
|
1633
|
-
|
|
1634
|
-
|
|
1681
|
+
`x` and `y` set where the sticker's centre lands, as a fraction of the target
|
|
1682
|
+
bubble's width and height:
|
|
1683
|
+
|
|
1684
|
+
| Position | `x` | `y` |
|
|
1685
|
+
| ------------------- | --- | --- |
|
|
1686
|
+
| Top-left corner | 0 | 0 |
|
|
1687
|
+
| Top-right corner | 1 | 0 |
|
|
1688
|
+
| Centre | 0.5 | 0.5 |
|
|
1689
|
+
| Bottom-left corner | 0 | 1 |
|
|
1690
|
+
| Bottom-right corner | 1 | 1 |
|
|
1691
|
+
|
|
1692
|
+
Every field is independent and optional. Omit `x` and `y` and the sticker lands
|
|
1693
|
+
on the top-left corner.
|
|
1694
|
+
|
|
1695
|
+
Position and size are relative to the target bubble, so a sticker keeps its
|
|
1696
|
+
place on the bubble on every device. Its size follows the bubble's width: the
|
|
1697
|
+
same sticker is drawn smaller on a bubble that a recipient's screen renders
|
|
1698
|
+
narrower than the sender's.
|
|
1635
1699
|
|
|
1636
1700
|
extra_headers: Send extra headers
|
|
1637
1701
|
|
|
@@ -67,8 +67,24 @@ class MessageAddReactionParams(TypedDict, total=False):
|
|
|
67
67
|
|
|
68
68
|
Only valid when type is "sticker".
|
|
69
69
|
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
`x` and `y` set where the sticker's centre lands, as a fraction of the target
|
|
71
|
+
bubble's width and height:
|
|
72
|
+
|
|
73
|
+
| Position | `x` | `y` |
|
|
74
|
+
| ------------------- | --- | --- |
|
|
75
|
+
| Top-left corner | 0 | 0 |
|
|
76
|
+
| Top-right corner | 1 | 0 |
|
|
77
|
+
| Centre | 0.5 | 0.5 |
|
|
78
|
+
| Bottom-left corner | 0 | 1 |
|
|
79
|
+
| Bottom-right corner | 1 | 1 |
|
|
80
|
+
|
|
81
|
+
Every field is independent and optional. Omit `x` and `y` and the sticker lands
|
|
82
|
+
on the top-left corner.
|
|
83
|
+
|
|
84
|
+
Position and size are relative to the target bubble, so a sticker keeps its
|
|
85
|
+
place on the bubble on every device. Its size follows the bubble's width: the
|
|
86
|
+
same sticker is drawn smaller on a bubble that a recipient's screen renders
|
|
87
|
+
narrower than the sender's.
|
|
72
88
|
"""
|
|
73
89
|
|
|
74
90
|
url: str
|
|
@@ -91,9 +107,24 @@ class Placement(TypedDict, total=False):
|
|
|
91
107
|
|
|
92
108
|
Only valid when type is "sticker".
|
|
93
109
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
110
|
+
`x` and `y` set where the sticker's centre lands, as a fraction of
|
|
111
|
+
the target bubble's width and height:
|
|
112
|
+
|
|
113
|
+
| Position | `x` | `y` |
|
|
114
|
+
|---|---|---|
|
|
115
|
+
| Top-left corner | 0 | 0 |
|
|
116
|
+
| Top-right corner | 1 | 0 |
|
|
117
|
+
| Centre | 0.5 | 0.5 |
|
|
118
|
+
| Bottom-left corner | 0 | 1 |
|
|
119
|
+
| Bottom-right corner | 1 | 1 |
|
|
120
|
+
|
|
121
|
+
Every field is independent and optional. Omit `x` and `y` and the
|
|
122
|
+
sticker lands on the top-left corner.
|
|
123
|
+
|
|
124
|
+
Position and size are relative to the target bubble, so a sticker
|
|
125
|
+
keeps its place on the bubble on every device. Its size follows the
|
|
126
|
+
bubble's width: the same sticker is drawn smaller on a bubble that a
|
|
127
|
+
recipient's screen renders narrower than the sender's.
|
|
97
128
|
"""
|
|
98
129
|
|
|
99
130
|
rotation: float
|
|
@@ -111,13 +142,19 @@ class Placement(TypedDict, total=False):
|
|
|
111
142
|
"""
|
|
112
143
|
|
|
113
144
|
x: float
|
|
114
|
-
"""
|
|
145
|
+
"""
|
|
146
|
+
Where the sticker's centre sits horizontally, as a fraction of the target
|
|
147
|
+
bubble's width: 0 is its left edge, 0.5 its centre and 1 its right edge. Values
|
|
148
|
+
outside -1–1 are clamped.
|
|
115
149
|
|
|
116
|
-
|
|
150
|
+
Avoid negative values: a sticker left of a received bubble makes the recipient's
|
|
151
|
+
device shift the whole message to fit it.
|
|
117
152
|
"""
|
|
118
153
|
|
|
119
154
|
y: float
|
|
120
|
-
"""
|
|
121
|
-
|
|
122
|
-
0 is
|
|
155
|
+
"""
|
|
156
|
+
Where the sticker's centre sits vertically, as a fraction of the target bubble's
|
|
157
|
+
height: 0 is its top edge, 0.5 its centre and 1 its bottom edge. Negative values
|
|
158
|
+
place it above the bubble; `-0.3` sits just above the top edge. Values outside
|
|
159
|
+
-1–1 are clamped.
|
|
123
160
|
"""
|
|
@@ -17,8 +17,24 @@ class MessageUpdateStickerPlacementParams(TypedDict, total=False):
|
|
|
17
17
|
|
|
18
18
|
Only valid when type is "sticker".
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
`x` and `y` set where the sticker's centre lands, as a fraction of the target
|
|
21
|
+
bubble's width and height:
|
|
22
|
+
|
|
23
|
+
| Position | `x` | `y` |
|
|
24
|
+
| ------------------- | --- | --- |
|
|
25
|
+
| Top-left corner | 0 | 0 |
|
|
26
|
+
| Top-right corner | 1 | 0 |
|
|
27
|
+
| Centre | 0.5 | 0.5 |
|
|
28
|
+
| Bottom-left corner | 0 | 1 |
|
|
29
|
+
| Bottom-right corner | 1 | 1 |
|
|
30
|
+
|
|
31
|
+
Every field is independent and optional. Omit `x` and `y` and the sticker lands
|
|
32
|
+
on the top-left corner.
|
|
33
|
+
|
|
34
|
+
Position and size are relative to the target bubble, so a sticker keeps its
|
|
35
|
+
place on the bubble on every device. Its size follows the bubble's width: the
|
|
36
|
+
same sticker is drawn smaller on a bubble that a recipient's screen renders
|
|
37
|
+
narrower than the sender's.
|
|
22
38
|
"""
|
|
23
39
|
|
|
24
40
|
|
|
@@ -28,9 +44,24 @@ class Placement(TypedDict, total=False):
|
|
|
28
44
|
|
|
29
45
|
Only valid when type is "sticker".
|
|
30
46
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
47
|
+
`x` and `y` set where the sticker's centre lands, as a fraction of
|
|
48
|
+
the target bubble's width and height:
|
|
49
|
+
|
|
50
|
+
| Position | `x` | `y` |
|
|
51
|
+
|---|---|---|
|
|
52
|
+
| Top-left corner | 0 | 0 |
|
|
53
|
+
| Top-right corner | 1 | 0 |
|
|
54
|
+
| Centre | 0.5 | 0.5 |
|
|
55
|
+
| Bottom-left corner | 0 | 1 |
|
|
56
|
+
| Bottom-right corner | 1 | 1 |
|
|
57
|
+
|
|
58
|
+
Every field is independent and optional. Omit `x` and `y` and the
|
|
59
|
+
sticker lands on the top-left corner.
|
|
60
|
+
|
|
61
|
+
Position and size are relative to the target bubble, so a sticker
|
|
62
|
+
keeps its place on the bubble on every device. Its size follows the
|
|
63
|
+
bubble's width: the same sticker is drawn smaller on a bubble that a
|
|
64
|
+
recipient's screen renders narrower than the sender's.
|
|
34
65
|
"""
|
|
35
66
|
|
|
36
67
|
rotation: float
|
|
@@ -48,13 +79,19 @@ class Placement(TypedDict, total=False):
|
|
|
48
79
|
"""
|
|
49
80
|
|
|
50
81
|
x: float
|
|
51
|
-
"""
|
|
82
|
+
"""
|
|
83
|
+
Where the sticker's centre sits horizontally, as a fraction of the target
|
|
84
|
+
bubble's width: 0 is its left edge, 0.5 its centre and 1 its right edge. Values
|
|
85
|
+
outside -1–1 are clamped.
|
|
52
86
|
|
|
53
|
-
|
|
87
|
+
Avoid negative values: a sticker left of a received bubble makes the recipient's
|
|
88
|
+
device shift the whole message to fit it.
|
|
54
89
|
"""
|
|
55
90
|
|
|
56
91
|
y: float
|
|
57
|
-
"""
|
|
58
|
-
|
|
59
|
-
0 is
|
|
92
|
+
"""
|
|
93
|
+
Where the sticker's centre sits vertically, as a fraction of the target bubble's
|
|
94
|
+
height: 0 is its top edge, 0.5 its centre and 1 its bottom edge. Negative values
|
|
95
|
+
place it above the bubble; `-0.3` sits just above the top edge. Values outside
|
|
96
|
+
-1–1 are clamped.
|
|
60
97
|
"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: linq-python
|
|
3
|
-
Version: 0.67.
|
|
3
|
+
Version: 0.67.2
|
|
4
4
|
Summary: The official Python library for the linq-api-v3 API
|
|
5
5
|
Project-URL: Homepage, https://github.com/linq-team/linq-python
|
|
6
6
|
Project-URL: Repository, https://github.com/linq-team/linq-python
|
|
@@ -11,7 +11,7 @@ linq/_resource.py,sha256=IvbBkxho8w_Ru0GHWOBUDwiuaI-CQoi8WWQJZCkfhyg,1118
|
|
|
11
11
|
linq/_response.py,sha256=Pyf_g81OCXWawxoGZDNp6h1sHMlDgCOsM5vI9fGEBKE,28923
|
|
12
12
|
linq/_streaming.py,sha256=zmn_k0MQ0d2f4KisSxNc4cqa3mTw2j75iPRyTL5jk9I,10562
|
|
13
13
|
linq/_types.py,sha256=qrCEcjX_Yc2ofAEdW5DcTaji-Ct1o6v7P0mCi-wDlDM,7747
|
|
14
|
-
linq/_version.py,sha256=
|
|
14
|
+
linq/_version.py,sha256=Y57I6wZqmrloPpBmWEUF0cB3pLWV4_0p42yNwmWf-KY,157
|
|
15
15
|
linq/pagination.py,sha256=LxWl_sqhWdi6dYzDK1QyEIJd43fvxXMcCwF6Y4ill9I,2464
|
|
16
16
|
linq/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
17
|
linq/_utils/__init__.py,sha256=nQq-iFa5YxTaWySaLigatew5rHgTR0M75FNYm4mrO1s,2313
|
|
@@ -56,7 +56,7 @@ linq/resources/chats/participants.py,sha256=8Y0Qo84yWIDF9YJ-wm1s5fatPPkKs2cD8dGh
|
|
|
56
56
|
linq/resources/chats/polls.py,sha256=EloFxr2I0uqfi9Tq0_mOS6dvcWU-QQHwAP5tsFXViQQ,20862
|
|
57
57
|
linq/resources/chats/typing.py,sha256=ZZeWq9CYJHvphVcwJ5lyFs4meKkSs3GVzcZLKbGi5q0,16022
|
|
58
58
|
linq/resources/messages/__init__.py,sha256=-SXl5iP6itR7jvnqCnGfOA2dDf-CZBBOpSYnzzKwqmg,1002
|
|
59
|
-
linq/resources/messages/messages.py,sha256=
|
|
59
|
+
linq/resources/messages/messages.py,sha256=GPYQQlBWk1pMVprTBfGRUW8s9zNDaMAi0w1jNGTCLLc,127376
|
|
60
60
|
linq/resources/messages/poll.py,sha256=bFSv54zzyKeg4M-X1DHQj45AoVJY-m0HclJVXvxW-QE,28795
|
|
61
61
|
linq/types/__init__.py,sha256=PqqYpr_iTVsw9tayEtUfC1YHx2uuKUDQAiM0hF3BY0g,17785
|
|
62
62
|
linq/types/api_token_activated_webhook_event.py,sha256=v58QDQhRyWbiw_E5_uuyCT4TwPoWWDD43JyFc9nP5bk,12585
|
|
@@ -128,7 +128,7 @@ linq/types/location_sharing_started_webhook_event.py,sha256=0t29h99HmQnOCS7X_sv9
|
|
|
128
128
|
linq/types/location_sharing_stopped_webhook_event.py,sha256=rSnZYInEk0QcX2tvWtNT_5M4y7Tej-qHECh818bVadQ,4091
|
|
129
129
|
linq/types/media_part_param.py,sha256=778syq5UtSByCS0XqbVy1R9XI17dpjzDcC6BZ2C2R5k,2839
|
|
130
130
|
linq/types/message.py,sha256=ocsryWmyrgohqj2_iWGMVw98bzEDMsPIT1iwrwBU3EY,8185
|
|
131
|
-
linq/types/message_add_reaction_params.py,sha256=
|
|
131
|
+
linq/types/message_add_reaction_params.py,sha256=tm0kHXTiZx2WzFRrstPH_o68m2UcLOBSX0Uw0CHMDUE,5365
|
|
132
132
|
linq/types/message_add_reaction_response.py,sha256=FiZTc7e89QqkhJL696vGbtxmXe668IIuhgu1tWJMYnw,341
|
|
133
133
|
linq/types/message_content_param.py,sha256=KO_Vd6x19pjZZRTeZRcZlpJAo3uahKiuGL82wqEfuJM,11918
|
|
134
134
|
linq/types/message_create_params.py,sha256=p0wj9JgdD51HIDH0wG6uYUrPOXJMatZVAwt9C-vPK4c,4120
|
|
@@ -146,7 +146,7 @@ linq/types/message_sent_webhook_event.py,sha256=bzjaDYOVq-A8haX9DWYXab1Fim0mk-0H
|
|
|
146
146
|
linq/types/message_update_app_card_params.py,sha256=ma9RqlEb0p59U3qj4QvrWy8l-EoJx9mDvuiMfkLdZOc,6055
|
|
147
147
|
linq/types/message_update_app_card_response.py,sha256=vtMECaYkCSo2gAgDr8muu_aTt_QCR2lFgkdfc1hIQ6c,497
|
|
148
148
|
linq/types/message_update_params.py,sha256=LODGwTIkbQRd8jfs-XOXSAm6z_f6bhPEvkqbjWD-spQ,414
|
|
149
|
-
linq/types/message_update_sticker_placement_params.py,sha256=
|
|
149
|
+
linq/types/message_update_sticker_placement_params.py,sha256=ErZm8ynyAK3H4o_XAosf7Abi8QyEEZEbaD7KNOhSoco,3277
|
|
150
150
|
linq/types/message_update_sticker_placement_response.py,sha256=7QQFvOW2kvfi8xGoG9YzGSX9Nt9U9ACUKuY_v9tg4m8,364
|
|
151
151
|
linq/types/participant_added_webhook_event.py,sha256=rryjic-2rOlbUTdAXXW9zH7T4SAAofsUQ-ZY6Q00GCw,1950
|
|
152
152
|
linq/types/participant_removed_webhook_event.py,sha256=dgbT2-ZnUobA5HLWHdkxD0z0XWlB6aKs98PpBDHNWIg,1968
|
|
@@ -266,7 +266,7 @@ linq/types/shared_params/__init__.py,sha256=FZWRsA1D5DW6IXxenxo9U8-bDW6YiizL-xaw
|
|
|
266
266
|
linq/types/shared_params/reaction_type.py,sha256=MP4ekeDAr9lK0wqdvl6FMVa5s0j2w6JhwF8TcF48aSA,317
|
|
267
267
|
linq/types/shared_params/service_type.py,sha256=AV_VS3d0v059_wou2dts8Jy-NzbGFXa3_VRRpG42N48,259
|
|
268
268
|
linq/types/shared_params/text_decoration.py,sha256=H-ph17ldBaFRNhajm77DfqjjtQbTNFJj9sepoHHcD80,881
|
|
269
|
-
linq_python-0.67.
|
|
270
|
-
linq_python-0.67.
|
|
271
|
-
linq_python-0.67.
|
|
272
|
-
linq_python-0.67.
|
|
269
|
+
linq_python-0.67.2.dist-info/METADATA,sha256=gVwYFP95z4yQgPfRaUkyUElV9ziauJm5DIxXdFT3jls,18056
|
|
270
|
+
linq_python-0.67.2.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
271
|
+
linq_python-0.67.2.dist-info/licenses/LICENSE,sha256=zP4mO5gBwuMBJx2-sVWVdjklSfevmIQT68JUQfvjy40,11341
|
|
272
|
+
linq_python-0.67.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|