telegrinder 0.1.dev158__py3-none-any.whl → 0.1.dev159__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.

Potentially problematic release.


This version of telegrinder might be problematic. Click here for more details.

@@ -53,7 +53,10 @@ class APIMethods:
53
53
  of time.
54
54
  """
55
55
 
56
- method_response = await self.api.request_raw("getUpdates", get_params(locals()))
56
+ method_response = await self.api.request_raw(
57
+ "getUpdates",
58
+ get_params(locals()),
59
+ )
57
60
  return full_result(method_response, list[Update])
58
61
 
59
62
  async def set_webhook(
@@ -108,7 +111,10 @@ class APIMethods:
108
111
  from a webhook set by you.
109
112
  """
110
113
 
111
- method_response = await self.api.request_raw("setWebhook", get_params(locals()))
114
+ method_response = await self.api.request_raw(
115
+ "setWebhook",
116
+ get_params(locals()),
117
+ )
112
118
  return full_result(method_response, bool)
113
119
 
114
120
  async def delete_webhook(
@@ -125,7 +131,8 @@ class APIMethods:
125
131
  """
126
132
 
127
133
  method_response = await self.api.request_raw(
128
- "deleteWebhook", get_params(locals())
134
+ "deleteWebhook",
135
+ get_params(locals()),
129
136
  )
130
137
  return full_result(method_response, bool)
131
138
 
@@ -140,7 +147,8 @@ class APIMethods:
140
147
  """
141
148
 
142
149
  method_response = await self.api.request_raw(
143
- "getWebhookInfo", get_params(locals())
150
+ "getWebhookInfo",
151
+ get_params(locals()),
144
152
  )
145
153
  return full_result(method_response, WebhookInfo)
146
154
 
@@ -152,7 +160,10 @@ class APIMethods:
152
160
  object.
153
161
  """
154
162
 
155
- method_response = await self.api.request_raw("getMe", get_params(locals()))
163
+ method_response = await self.api.request_raw(
164
+ "getMe",
165
+ get_params(locals()),
166
+ )
156
167
  return full_result(method_response, User)
157
168
 
158
169
  async def log_out(self, **other: typing.Any) -> Result[bool, "APIError"]:
@@ -166,7 +177,10 @@ class APIMethods:
166
177
  Requires no parameters.
167
178
  """
168
179
 
169
- method_response = await self.api.request_raw("logOut", get_params(locals()))
180
+ method_response = await self.api.request_raw(
181
+ "logOut",
182
+ get_params(locals()),
183
+ )
170
184
  return full_result(method_response, bool)
171
185
 
172
186
  async def close(self, **other: typing.Any) -> Result[bool, "APIError"]:
@@ -179,7 +193,10 @@ class APIMethods:
179
193
  True on success. Requires no parameters.
180
194
  """
181
195
 
182
- method_response = await self.api.request_raw("close", get_params(locals()))
196
+ method_response = await self.api.request_raw(
197
+ "close",
198
+ get_params(locals()),
199
+ )
183
200
  return full_result(method_response, bool)
184
201
 
185
202
  async def send_message(
@@ -237,7 +254,8 @@ class APIMethods:
237
254
  """
238
255
 
239
256
  method_response = await self.api.request_raw(
240
- "sendMessage", get_params(locals())
257
+ "sendMessage",
258
+ get_params(locals()),
241
259
  )
242
260
  return full_result(method_response, Message)
243
261
 
@@ -274,7 +292,8 @@ class APIMethods:
274
292
  """
275
293
 
276
294
  method_response = await self.api.request_raw(
277
- "forwardMessage", get_params(locals())
295
+ "forwardMessage",
296
+ get_params(locals()),
278
297
  )
279
298
  return full_result(method_response, Message)
280
299
 
@@ -305,8 +324,9 @@ class APIMethods:
305
324
  :param from_chat_id: Unique identifier for the chat where the original messages were sent (or \
306
325
  channel username in the format @channelusername).
307
326
 
308
- :param message_ids: Identifiers of 1-100 messages in the chat from_chat_id to forward. The \
309
- identifiers must be specified in a strictly increasing order.
327
+ :param message_ids: A JSON-serialized list of 1-100 identifiers of messages in the chat from_chat_id \
328
+ to forward. The identifiers must be specified in a strictly increasing \
329
+ order.
310
330
 
311
331
  :param disable_notification: Sends the messages silently. Users will receive a notification with no \
312
332
  sound.
@@ -315,7 +335,8 @@ class APIMethods:
315
335
  """
316
336
 
317
337
  method_response = await self.api.request_raw(
318
- "forwardMessages", get_params(locals())
338
+ "forwardMessages",
339
+ get_params(locals()),
319
340
  )
320
341
  return full_result(method_response, list[MessageId])
321
342
 
@@ -384,7 +405,8 @@ class APIMethods:
384
405
  """
385
406
 
386
407
  method_response = await self.api.request_raw(
387
- "copyMessage", get_params(locals())
408
+ "copyMessage",
409
+ get_params(locals()),
388
410
  )
389
411
  return full_result(method_response, MessageId)
390
412
 
@@ -419,8 +441,8 @@ class APIMethods:
419
441
  :param from_chat_id: Unique identifier for the chat where the original messages were sent (or \
420
442
  channel username in the format @channelusername).
421
443
 
422
- :param message_ids: Identifiers of 1-100 messages in the chat from_chat_id to copy. The identifiers \
423
- must be specified in a strictly increasing order.
444
+ :param message_ids: A JSON-serialized list of 1-100 identifiers of messages in the chat from_chat_id \
445
+ to copy. The identifiers must be specified in a strictly increasing order. \
424
446
 
425
447
  :param disable_notification: Sends the messages silently. Users will receive a notification with no \
426
448
  sound.
@@ -431,7 +453,8 @@ class APIMethods:
431
453
  """
432
454
 
433
455
  method_response = await self.api.request_raw(
434
- "copyMessages", get_params(locals())
456
+ "copyMessages",
457
+ get_params(locals()),
435
458
  )
436
459
  return full_result(method_response, list[MessageId])
437
460
 
@@ -498,7 +521,10 @@ class APIMethods:
498
521
  or to force a reply from the user.
499
522
  """
500
523
 
501
- method_response = await self.api.request_raw("sendPhoto", get_params(locals()))
524
+ method_response = await self.api.request_raw(
525
+ "sendPhoto",
526
+ get_params(locals()),
527
+ )
502
528
  return full_result(method_response, Message)
503
529
 
504
530
  async def send_audio(
@@ -580,7 +606,10 @@ class APIMethods:
580
606
  or to force a reply from the user.
581
607
  """
582
608
 
583
- method_response = await self.api.request_raw("sendAudio", get_params(locals()))
609
+ method_response = await self.api.request_raw(
610
+ "sendAudio",
611
+ get_params(locals()),
612
+ )
584
613
  return full_result(method_response, Message)
585
614
 
586
615
  async def send_document(
@@ -657,7 +686,8 @@ class APIMethods:
657
686
  """
658
687
 
659
688
  method_response = await self.api.request_raw(
660
- "sendDocument", get_params(locals())
689
+ "sendDocument",
690
+ get_params(locals()),
661
691
  )
662
692
  return full_result(method_response, Message)
663
693
 
@@ -746,7 +776,10 @@ class APIMethods:
746
776
  or to force a reply from the user.
747
777
  """
748
778
 
749
- method_response = await self.api.request_raw("sendVideo", get_params(locals()))
779
+ method_response = await self.api.request_raw(
780
+ "sendVideo",
781
+ get_params(locals()),
782
+ )
750
783
  return full_result(method_response, Message)
751
784
 
752
785
  async def send_animation(
@@ -831,7 +864,8 @@ class APIMethods:
831
864
  """
832
865
 
833
866
  method_response = await self.api.request_raw(
834
- "sendAnimation", get_params(locals())
867
+ "sendAnimation",
868
+ get_params(locals()),
835
869
  )
836
870
  return full_result(method_response, Message)
837
871
 
@@ -899,7 +933,10 @@ class APIMethods:
899
933
  or to force a reply from the user.
900
934
  """
901
935
 
902
- method_response = await self.api.request_raw("sendVoice", get_params(locals()))
936
+ method_response = await self.api.request_raw(
937
+ "sendVoice",
938
+ get_params(locals()),
939
+ )
903
940
  return full_result(method_response, Message)
904
941
 
905
942
  async def send_video_note(
@@ -966,17 +1003,17 @@ class APIMethods:
966
1003
  """
967
1004
 
968
1005
  method_response = await self.api.request_raw(
969
- "sendVideoNote", get_params(locals())
1006
+ "sendVideoNote",
1007
+ get_params(locals()),
970
1008
  )
971
1009
  return full_result(method_response, Message)
972
1010
 
973
1011
  async def send_media_group(
974
1012
  self,
975
1013
  chat_id: int | str,
976
- media: list[InputMediaAudio]
977
- | list[InputMediaDocument]
978
- | list[InputMediaPhoto]
979
- | list[InputMediaVideo],
1014
+ media: list[
1015
+ InputMediaAudio | InputMediaDocument | InputMediaPhoto | InputMediaVideo
1016
+ ],
980
1017
  message_thread_id: int | Option[int] = Nothing,
981
1018
  disable_notification: bool | Option[bool] = Nothing,
982
1019
  protect_content: bool | Option[bool] = Nothing,
@@ -1006,7 +1043,8 @@ class APIMethods:
1006
1043
  """
1007
1044
 
1008
1045
  method_response = await self.api.request_raw(
1009
- "sendMediaGroup", get_params(locals())
1046
+ "sendMediaGroup",
1047
+ get_params(locals()),
1010
1048
  )
1011
1049
  return full_result(method_response, list[Message])
1012
1050
 
@@ -1072,7 +1110,8 @@ class APIMethods:
1072
1110
  """
1073
1111
 
1074
1112
  method_response = await self.api.request_raw(
1075
- "sendLocation", get_params(locals())
1113
+ "sendLocation",
1114
+ get_params(locals()),
1076
1115
  )
1077
1116
  return full_result(method_response, Message)
1078
1117
 
@@ -1142,7 +1181,10 @@ class APIMethods:
1142
1181
  or to force a reply from the user.
1143
1182
  """
1144
1183
 
1145
- method_response = await self.api.request_raw("sendVenue", get_params(locals()))
1184
+ method_response = await self.api.request_raw(
1185
+ "sendVenue",
1186
+ get_params(locals()),
1187
+ )
1146
1188
  return full_result(method_response, Message)
1147
1189
 
1148
1190
  async def send_contact(
@@ -1198,7 +1240,8 @@ class APIMethods:
1198
1240
  """
1199
1241
 
1200
1242
  method_response = await self.api.request_raw(
1201
- "sendContact", get_params(locals())
1243
+ "sendContact",
1244
+ get_params(locals()),
1202
1245
  )
1203
1246
  return full_result(method_response, Message)
1204
1247
 
@@ -1209,7 +1252,8 @@ class APIMethods:
1209
1252
  options: list[str],
1210
1253
  message_thread_id: int | Option[int] = Nothing,
1211
1254
  is_anonymous: bool | Option[bool] = Nothing,
1212
- type: str | Option[str] = Nothing,
1255
+ type: typing.Literal["quiz", "regular"]
1256
+ | Option[typing.Literal["quiz", "regular"]] = Nothing,
1213
1257
  allows_multiple_answers: bool | Option[bool] = Nothing,
1214
1258
  correct_option_id: int | Option[int] = Nothing,
1215
1259
  explanation: str | Option[str] = Nothing,
@@ -1217,7 +1261,7 @@ class APIMethods:
1217
1261
  explanation_entities: list[MessageEntity]
1218
1262
  | Option[list[MessageEntity]] = Nothing,
1219
1263
  open_period: int | Option[int] = Nothing,
1220
- close_date: int | Option[int] = Nothing,
1264
+ close_date: datetime | int | Option[datetime | int] = Nothing,
1221
1265
  is_closed: bool | Option[bool] = Nothing,
1222
1266
  disable_notification: bool | Option[bool] = Nothing,
1223
1267
  protect_content: bool | Option[bool] = Nothing,
@@ -1290,14 +1334,17 @@ class APIMethods:
1290
1334
  or to force a reply from the user.
1291
1335
  """
1292
1336
 
1293
- method_response = await self.api.request_raw("sendPoll", get_params(locals()))
1337
+ method_response = await self.api.request_raw(
1338
+ "sendPoll",
1339
+ get_params(locals()),
1340
+ )
1294
1341
  return full_result(method_response, Message)
1295
1342
 
1296
1343
  async def send_dice(
1297
1344
  self,
1298
1345
  chat_id: int | str,
1299
1346
  message_thread_id: int | Option[int] = Nothing,
1300
- emoji: str | Option[str] = Nothing,
1347
+ emoji: DiceEmoji | Option[DiceEmoji] = Nothing,
1301
1348
  disable_notification: bool | Option[bool] = Nothing,
1302
1349
  protect_content: bool | Option[bool] = Nothing,
1303
1350
  reply_parameters: ReplyParameters | Option[ReplyParameters] = Nothing,
@@ -1339,13 +1386,16 @@ class APIMethods:
1339
1386
  or to force a reply from the user.
1340
1387
  """
1341
1388
 
1342
- method_response = await self.api.request_raw("sendDice", get_params(locals()))
1389
+ method_response = await self.api.request_raw(
1390
+ "sendDice",
1391
+ get_params(locals()),
1392
+ )
1343
1393
  return full_result(method_response, Message)
1344
1394
 
1345
1395
  async def send_chat_action(
1346
1396
  self,
1347
1397
  chat_id: int | str,
1348
- action: str,
1398
+ action: ChatAction,
1349
1399
  message_thread_id: int | Option[int] = Nothing,
1350
1400
  **other: typing.Any,
1351
1401
  ) -> Result[bool, "APIError"]:
@@ -1360,7 +1410,7 @@ class APIMethods:
1360
1410
  :param chat_id: Unique identifier for the target chat or username of the target channel \
1361
1411
  (in the format @channelusername).
1362
1412
 
1363
- :param message_thread_id: Unique identifier for the target message thread; supergroups only.
1413
+ :param message_thread_id: Unique identifier for the target message thread; for supergroups only. \
1364
1414
 
1365
1415
  :param action: Type of action to broadcast. Choose one, depending on what the user is about \
1366
1416
  to receive: typing for text messages, upload_photo for photos, record_video \
@@ -1371,7 +1421,8 @@ class APIMethods:
1371
1421
  """
1372
1422
 
1373
1423
  method_response = await self.api.request_raw(
1374
- "sendChatAction", get_params(locals())
1424
+ "sendChatAction",
1425
+ get_params(locals()),
1375
1426
  )
1376
1427
  return full_result(method_response, bool)
1377
1428
 
@@ -1396,16 +1447,17 @@ class APIMethods:
1396
1447
  :param message_id: Identifier of the target message. If the message belongs to a media group, \
1397
1448
  the reaction is set to the first non-deleted message in the group instead. \
1398
1449
 
1399
- :param reaction: New list of reaction types to set on the message. Currently, as non-premium \
1400
- users, bots can set up to one reaction per message. A custom emoji reaction \
1401
- can be used if it is either already present on the message or explicitly allowed \
1402
- by chat administrators.
1450
+ :param reaction: A JSON-serialized list of reaction types to set on the message. Currently, \
1451
+ as non-premium users, bots can set up to one reaction per message. A custom \
1452
+ emoji reaction can be used if it is either already present on the message \
1453
+ or explicitly allowed by chat administrators.
1403
1454
 
1404
1455
  :param is_big: Pass True to set the reaction with a big animation.
1405
1456
  """
1406
1457
 
1407
1458
  method_response = await self.api.request_raw(
1408
- "setMessageReaction", get_params(locals())
1459
+ "setMessageReaction",
1460
+ get_params(locals()),
1409
1461
  )
1410
1462
  return full_result(method_response, bool)
1411
1463
 
@@ -1431,7 +1483,8 @@ class APIMethods:
1431
1483
  """
1432
1484
 
1433
1485
  method_response = await self.api.request_raw(
1434
- "getUserProfilePhotos", get_params(locals())
1486
+ "getUserProfilePhotos",
1487
+ get_params(locals()),
1435
1488
  )
1436
1489
  return full_result(method_response, UserProfilePhotos)
1437
1490
 
@@ -1454,14 +1507,17 @@ class APIMethods:
1454
1507
  :param file_id: File identifier to get information about.
1455
1508
  """
1456
1509
 
1457
- method_response = await self.api.request_raw("getFile", get_params(locals()))
1510
+ method_response = await self.api.request_raw(
1511
+ "getFile",
1512
+ get_params(locals()),
1513
+ )
1458
1514
  return full_result(method_response, File)
1459
1515
 
1460
1516
  async def ban_chat_member(
1461
1517
  self,
1462
1518
  chat_id: int | str,
1463
1519
  user_id: int,
1464
- until_date: int | Option[int] = Nothing,
1520
+ until_date: datetime | int | Option[datetime | int] = Nothing,
1465
1521
  revoke_messages: bool | Option[bool] = Nothing,
1466
1522
  **other: typing.Any,
1467
1523
  ) -> Result[bool, "APIError"]:
@@ -1488,7 +1544,8 @@ class APIMethods:
1488
1544
  """
1489
1545
 
1490
1546
  method_response = await self.api.request_raw(
1491
- "banChatMember", get_params(locals())
1547
+ "banChatMember",
1548
+ get_params(locals()),
1492
1549
  )
1493
1550
  return full_result(method_response, bool)
1494
1551
 
@@ -1518,7 +1575,8 @@ class APIMethods:
1518
1575
  """
1519
1576
 
1520
1577
  method_response = await self.api.request_raw(
1521
- "unbanChatMember", get_params(locals())
1578
+ "unbanChatMember",
1579
+ get_params(locals()),
1522
1580
  )
1523
1581
  return full_result(method_response, bool)
1524
1582
 
@@ -1528,7 +1586,7 @@ class APIMethods:
1528
1586
  user_id: int,
1529
1587
  permissions: ChatPermissions,
1530
1588
  use_independent_chat_permissions: bool | Option[bool] = Nothing,
1531
- until_date: int | Option[int] = Nothing,
1589
+ until_date: datetime | int | Option[datetime | int] = Nothing,
1532
1590
  **other: typing.Any,
1533
1591
  ) -> Result[bool, "APIError"]:
1534
1592
  """Method `restrictChatMember`, see the [documentation](https://core.telegram.org/bots/api#restrictchatmember)
@@ -1557,7 +1615,8 @@ class APIMethods:
1557
1615
  """
1558
1616
 
1559
1617
  method_response = await self.api.request_raw(
1560
- "restrictChatMember", get_params(locals())
1618
+ "restrictChatMember",
1619
+ get_params(locals()),
1561
1620
  )
1562
1621
  return full_result(method_response, bool)
1563
1622
 
@@ -1623,19 +1682,20 @@ class APIMethods:
1623
1682
  :param can_delete_stories: Pass True if the administrator can delete stories posted by other users. \
1624
1683
 
1625
1684
  :param can_post_messages: Pass True if the administrator can post messages in the channel, or access \
1626
- channel statistics; channels only.
1685
+ channel statistics; for channels only.
1627
1686
 
1628
1687
  :param can_edit_messages: Pass True if the administrator can edit messages of other users and can pin \
1629
- messages; channels only.
1688
+ messages; for channels only.
1630
1689
 
1631
- :param can_pin_messages: Pass True if the administrator can pin messages, supergroups only.
1690
+ :param can_pin_messages: Pass True if the administrator can pin messages; for supergroups only. \
1632
1691
 
1633
1692
  :param can_manage_topics: Pass True if the user is allowed to create, rename, close, and reopen forum \
1634
- topics, supergroups only.
1693
+ topics; for supergroups only.
1635
1694
  """
1636
1695
 
1637
1696
  method_response = await self.api.request_raw(
1638
- "promoteChatMember", get_params(locals())
1697
+ "promoteChatMember",
1698
+ get_params(locals()),
1639
1699
  )
1640
1700
  return full_result(method_response, bool)
1641
1701
 
@@ -1661,7 +1721,8 @@ class APIMethods:
1661
1721
  """
1662
1722
 
1663
1723
  method_response = await self.api.request_raw(
1664
- "setChatAdministratorCustomTitle", get_params(locals())
1724
+ "setChatAdministratorCustomTitle",
1725
+ get_params(locals()),
1665
1726
  )
1666
1727
  return full_result(method_response, bool)
1667
1728
 
@@ -1686,7 +1747,8 @@ class APIMethods:
1686
1747
  """
1687
1748
 
1688
1749
  method_response = await self.api.request_raw(
1689
- "banChatSenderChat", get_params(locals())
1750
+ "banChatSenderChat",
1751
+ get_params(locals()),
1690
1752
  )
1691
1753
  return full_result(method_response, bool)
1692
1754
 
@@ -1709,7 +1771,8 @@ class APIMethods:
1709
1771
  """
1710
1772
 
1711
1773
  method_response = await self.api.request_raw(
1712
- "unbanChatSenderChat", get_params(locals())
1774
+ "unbanChatSenderChat",
1775
+ get_params(locals()),
1713
1776
  )
1714
1777
  return full_result(method_response, bool)
1715
1778
 
@@ -1740,7 +1803,8 @@ class APIMethods:
1740
1803
  """
1741
1804
 
1742
1805
  method_response = await self.api.request_raw(
1743
- "setChatPermissions", get_params(locals())
1806
+ "setChatPermissions",
1807
+ get_params(locals()),
1744
1808
  )
1745
1809
  return full_result(method_response, bool)
1746
1810
 
@@ -1761,7 +1825,8 @@ class APIMethods:
1761
1825
  """
1762
1826
 
1763
1827
  method_response = await self.api.request_raw(
1764
- "exportChatInviteLink", get_params(locals())
1828
+ "exportChatInviteLink",
1829
+ get_params(locals()),
1765
1830
  )
1766
1831
  return full_result(method_response, str)
1767
1832
 
@@ -1769,7 +1834,7 @@ class APIMethods:
1769
1834
  self,
1770
1835
  chat_id: int | str,
1771
1836
  name: str | Option[str] = Nothing,
1772
- expire_date: int | Option[int] = Nothing,
1837
+ expire_date: datetime | int | Option[datetime | int] = Nothing,
1773
1838
  member_limit: int | Option[int] = Nothing,
1774
1839
  creates_join_request: bool | Option[bool] = Nothing,
1775
1840
  **other: typing.Any,
@@ -1796,7 +1861,8 @@ class APIMethods:
1796
1861
  """
1797
1862
 
1798
1863
  method_response = await self.api.request_raw(
1799
- "createChatInviteLink", get_params(locals())
1864
+ "createChatInviteLink",
1865
+ get_params(locals()),
1800
1866
  )
1801
1867
  return full_result(method_response, ChatInviteLink)
1802
1868
 
@@ -1805,7 +1871,7 @@ class APIMethods:
1805
1871
  chat_id: int | str,
1806
1872
  invite_link: str,
1807
1873
  name: str | Option[str] = Nothing,
1808
- expire_date: int | Option[int] = Nothing,
1874
+ expire_date: datetime | int | Option[datetime | int] = Nothing,
1809
1875
  member_limit: int | Option[int] = Nothing,
1810
1876
  creates_join_request: bool | Option[bool] = Nothing,
1811
1877
  **other: typing.Any,
@@ -1834,7 +1900,8 @@ class APIMethods:
1834
1900
  """
1835
1901
 
1836
1902
  method_response = await self.api.request_raw(
1837
- "editChatInviteLink", get_params(locals())
1903
+ "editChatInviteLink",
1904
+ get_params(locals()),
1838
1905
  )
1839
1906
  return full_result(method_response, ChatInviteLink)
1840
1907
 
@@ -1859,7 +1926,8 @@ class APIMethods:
1859
1926
  """
1860
1927
 
1861
1928
  method_response = await self.api.request_raw(
1862
- "revokeChatInviteLink", get_params(locals())
1929
+ "revokeChatInviteLink",
1930
+ get_params(locals()),
1863
1931
  )
1864
1932
  return full_result(method_response, ChatInviteLink)
1865
1933
 
@@ -1882,7 +1950,8 @@ class APIMethods:
1882
1950
  """
1883
1951
 
1884
1952
  method_response = await self.api.request_raw(
1885
- "approveChatJoinRequest", get_params(locals())
1953
+ "approveChatJoinRequest",
1954
+ get_params(locals()),
1886
1955
  )
1887
1956
  return full_result(method_response, bool)
1888
1957
 
@@ -1905,7 +1974,8 @@ class APIMethods:
1905
1974
  """
1906
1975
 
1907
1976
  method_response = await self.api.request_raw(
1908
- "declineChatJoinRequest", get_params(locals())
1977
+ "declineChatJoinRequest",
1978
+ get_params(locals()),
1909
1979
  )
1910
1980
  return full_result(method_response, bool)
1911
1981
 
@@ -1929,7 +1999,8 @@ class APIMethods:
1929
1999
  """
1930
2000
 
1931
2001
  method_response = await self.api.request_raw(
1932
- "setChatPhoto", get_params(locals())
2002
+ "setChatPhoto",
2003
+ get_params(locals()),
1933
2004
  )
1934
2005
  return full_result(method_response, bool)
1935
2006
 
@@ -1949,7 +2020,8 @@ class APIMethods:
1949
2020
  """
1950
2021
 
1951
2022
  method_response = await self.api.request_raw(
1952
- "deleteChatPhoto", get_params(locals())
2023
+ "deleteChatPhoto",
2024
+ get_params(locals()),
1953
2025
  )
1954
2026
  return full_result(method_response, bool)
1955
2027
 
@@ -1972,7 +2044,8 @@ class APIMethods:
1972
2044
  """
1973
2045
 
1974
2046
  method_response = await self.api.request_raw(
1975
- "setChatTitle", get_params(locals())
2047
+ "setChatTitle",
2048
+ get_params(locals()),
1976
2049
  )
1977
2050
  return full_result(method_response, bool)
1978
2051
 
@@ -1995,7 +2068,8 @@ class APIMethods:
1995
2068
  """
1996
2069
 
1997
2070
  method_response = await self.api.request_raw(
1998
- "setChatDescription", get_params(locals())
2071
+ "setChatDescription",
2072
+ get_params(locals()),
1999
2073
  )
2000
2074
  return full_result(method_response, bool)
2001
2075
 
@@ -2025,7 +2099,8 @@ class APIMethods:
2025
2099
  """
2026
2100
 
2027
2101
  method_response = await self.api.request_raw(
2028
- "pinChatMessage", get_params(locals())
2102
+ "pinChatMessage",
2103
+ get_params(locals()),
2029
2104
  )
2030
2105
  return full_result(method_response, bool)
2031
2106
 
@@ -2051,7 +2126,8 @@ class APIMethods:
2051
2126
  """
2052
2127
 
2053
2128
  method_response = await self.api.request_raw(
2054
- "unpinChatMessage", get_params(locals())
2129
+ "unpinChatMessage",
2130
+ get_params(locals()),
2055
2131
  )
2056
2132
  return full_result(method_response, bool)
2057
2133
 
@@ -2073,7 +2149,8 @@ class APIMethods:
2073
2149
  """
2074
2150
 
2075
2151
  method_response = await self.api.request_raw(
2076
- "unpinAllChatMessages", get_params(locals())
2152
+ "unpinAllChatMessages",
2153
+ get_params(locals()),
2077
2154
  )
2078
2155
  return full_result(method_response, bool)
2079
2156
 
@@ -2091,7 +2168,10 @@ class APIMethods:
2091
2168
  or channel (in the format @channelusername).
2092
2169
  """
2093
2170
 
2094
- method_response = await self.api.request_raw("leaveChat", get_params(locals()))
2171
+ method_response = await self.api.request_raw(
2172
+ "leaveChat",
2173
+ get_params(locals()),
2174
+ )
2095
2175
  return full_result(method_response, bool)
2096
2176
 
2097
2177
  async def get_chat(
@@ -2108,7 +2188,10 @@ class APIMethods:
2108
2188
  or channel (in the format @channelusername).
2109
2189
  """
2110
2190
 
2111
- method_response = await self.api.request_raw("getChat", get_params(locals()))
2191
+ method_response = await self.api.request_raw(
2192
+ "getChat",
2193
+ get_params(locals()),
2194
+ )
2112
2195
  return full_result(method_response, Chat)
2113
2196
 
2114
2197
  async def get_chat_administrators(
@@ -2138,7 +2221,8 @@ class APIMethods:
2138
2221
  """
2139
2222
 
2140
2223
  method_response = await self.api.request_raw(
2141
- "getChatAdministrators", get_params(locals())
2224
+ "getChatAdministrators",
2225
+ get_params(locals()),
2142
2226
  )
2143
2227
  return full_result(
2144
2228
  method_response,
@@ -2168,7 +2252,8 @@ class APIMethods:
2168
2252
  """
2169
2253
 
2170
2254
  method_response = await self.api.request_raw(
2171
- "getChatMemberCount", get_params(locals())
2255
+ "getChatMemberCount",
2256
+ get_params(locals()),
2172
2257
  )
2173
2258
  return full_result(method_response, int)
2174
2259
 
@@ -2201,7 +2286,8 @@ class APIMethods:
2201
2286
  """
2202
2287
 
2203
2288
  method_response = await self.api.request_raw(
2204
- "getChatMember", get_params(locals())
2289
+ "getChatMember",
2290
+ get_params(locals()),
2205
2291
  )
2206
2292
  return full_result(
2207
2293
  method_response,
@@ -2236,7 +2322,8 @@ class APIMethods:
2236
2322
  """
2237
2323
 
2238
2324
  method_response = await self.api.request_raw(
2239
- "setChatStickerSet", get_params(locals())
2325
+ "setChatStickerSet",
2326
+ get_params(locals()),
2240
2327
  )
2241
2328
  return full_result(method_response, bool)
2242
2329
 
@@ -2258,7 +2345,8 @@ class APIMethods:
2258
2345
  """
2259
2346
 
2260
2347
  method_response = await self.api.request_raw(
2261
- "deleteChatStickerSet", get_params(locals())
2348
+ "deleteChatStickerSet",
2349
+ get_params(locals()),
2262
2350
  )
2263
2351
  return full_result(method_response, bool)
2264
2352
 
@@ -2273,7 +2361,8 @@ class APIMethods:
2273
2361
  """
2274
2362
 
2275
2363
  method_response = await self.api.request_raw(
2276
- "getForumTopicIconStickers", get_params(locals())
2364
+ "getForumTopicIconStickers",
2365
+ get_params(locals()),
2277
2366
  )
2278
2367
  return full_result(method_response, list[Sticker])
2279
2368
 
@@ -2281,7 +2370,7 @@ class APIMethods:
2281
2370
  self,
2282
2371
  chat_id: int | str,
2283
2372
  name: str,
2284
- icon_color: int | Option[int] = Nothing,
2373
+ icon_color: TopicIconColor | Option[TopicIconColor] = Nothing,
2285
2374
  icon_custom_emoji_id: str | Option[str] = Nothing,
2286
2375
  **other: typing.Any,
2287
2376
  ) -> Result[ForumTopic, "APIError"]:
@@ -2306,7 +2395,8 @@ class APIMethods:
2306
2395
  """
2307
2396
 
2308
2397
  method_response = await self.api.request_raw(
2309
- "createForumTopic", get_params(locals())
2398
+ "createForumTopic",
2399
+ get_params(locals()),
2310
2400
  )
2311
2401
  return full_result(method_response, ForumTopic)
2312
2402
 
@@ -2339,7 +2429,8 @@ class APIMethods:
2339
2429
  """
2340
2430
 
2341
2431
  method_response = await self.api.request_raw(
2342
- "editForumTopic", get_params(locals())
2432
+ "editForumTopic",
2433
+ get_params(locals()),
2343
2434
  )
2344
2435
  return full_result(method_response, bool)
2345
2436
 
@@ -2363,7 +2454,8 @@ class APIMethods:
2363
2454
  """
2364
2455
 
2365
2456
  method_response = await self.api.request_raw(
2366
- "closeForumTopic", get_params(locals())
2457
+ "closeForumTopic",
2458
+ get_params(locals()),
2367
2459
  )
2368
2460
  return full_result(method_response, bool)
2369
2461
 
@@ -2387,7 +2479,8 @@ class APIMethods:
2387
2479
  """
2388
2480
 
2389
2481
  method_response = await self.api.request_raw(
2390
- "reopenForumTopic", get_params(locals())
2482
+ "reopenForumTopic",
2483
+ get_params(locals()),
2391
2484
  )
2392
2485
  return full_result(method_response, bool)
2393
2486
 
@@ -2411,7 +2504,8 @@ class APIMethods:
2411
2504
  """
2412
2505
 
2413
2506
  method_response = await self.api.request_raw(
2414
- "deleteForumTopic", get_params(locals())
2507
+ "deleteForumTopic",
2508
+ get_params(locals()),
2415
2509
  )
2416
2510
  return full_result(method_response, bool)
2417
2511
 
@@ -2435,7 +2529,8 @@ class APIMethods:
2435
2529
  """
2436
2530
 
2437
2531
  method_response = await self.api.request_raw(
2438
- "unpinAllForumTopicMessages", get_params(locals())
2532
+ "unpinAllForumTopicMessages",
2533
+ get_params(locals()),
2439
2534
  )
2440
2535
  return full_result(method_response, bool)
2441
2536
 
@@ -2458,7 +2553,8 @@ class APIMethods:
2458
2553
  """
2459
2554
 
2460
2555
  method_response = await self.api.request_raw(
2461
- "editGeneralForumTopic", get_params(locals())
2556
+ "editGeneralForumTopic",
2557
+ get_params(locals()),
2462
2558
  )
2463
2559
  return full_result(method_response, bool)
2464
2560
 
@@ -2478,7 +2574,8 @@ class APIMethods:
2478
2574
  """
2479
2575
 
2480
2576
  method_response = await self.api.request_raw(
2481
- "closeGeneralForumTopic", get_params(locals())
2577
+ "closeGeneralForumTopic",
2578
+ get_params(locals()),
2482
2579
  )
2483
2580
  return full_result(method_response, bool)
2484
2581
 
@@ -2499,7 +2596,8 @@ class APIMethods:
2499
2596
  """
2500
2597
 
2501
2598
  method_response = await self.api.request_raw(
2502
- "reopenGeneralForumTopic", get_params(locals())
2599
+ "reopenGeneralForumTopic",
2600
+ get_params(locals()),
2503
2601
  )
2504
2602
  return full_result(method_response, bool)
2505
2603
 
@@ -2520,7 +2618,8 @@ class APIMethods:
2520
2618
  """
2521
2619
 
2522
2620
  method_response = await self.api.request_raw(
2523
- "hideGeneralForumTopic", get_params(locals())
2621
+ "hideGeneralForumTopic",
2622
+ get_params(locals()),
2524
2623
  )
2525
2624
  return full_result(method_response, bool)
2526
2625
 
@@ -2540,7 +2639,8 @@ class APIMethods:
2540
2639
  """
2541
2640
 
2542
2641
  method_response = await self.api.request_raw(
2543
- "unhideGeneralForumTopic", get_params(locals())
2642
+ "unhideGeneralForumTopic",
2643
+ get_params(locals()),
2544
2644
  )
2545
2645
  return full_result(method_response, bool)
2546
2646
 
@@ -2561,7 +2661,8 @@ class APIMethods:
2561
2661
  """
2562
2662
 
2563
2663
  method_response = await self.api.request_raw(
2564
- "unpinAllGeneralForumTopicMessages", get_params(locals())
2664
+ "unpinAllGeneralForumTopicMessages",
2665
+ get_params(locals()),
2565
2666
  )
2566
2667
  return full_result(method_response, bool)
2567
2668
 
@@ -2600,7 +2701,8 @@ class APIMethods:
2600
2701
  """
2601
2702
 
2602
2703
  method_response = await self.api.request_raw(
2603
- "answerCallbackQuery", get_params(locals())
2704
+ "answerCallbackQuery",
2705
+ get_params(locals()),
2604
2706
  )
2605
2707
  return full_result(method_response, bool)
2606
2708
 
@@ -2622,7 +2724,8 @@ class APIMethods:
2622
2724
  """
2623
2725
 
2624
2726
  method_response = await self.api.request_raw(
2625
- "getUserChatBoosts", get_params(locals())
2727
+ "getUserChatBoosts",
2728
+ get_params(locals()),
2626
2729
  )
2627
2730
  return full_result(method_response, UserChatBoosts)
2628
2731
 
@@ -2650,7 +2753,8 @@ class APIMethods:
2650
2753
  """
2651
2754
 
2652
2755
  method_response = await self.api.request_raw(
2653
- "setMyCommands", get_params(locals())
2756
+ "setMyCommands",
2757
+ get_params(locals()),
2654
2758
  )
2655
2759
  return full_result(method_response, bool)
2656
2760
 
@@ -2675,7 +2779,8 @@ class APIMethods:
2675
2779
  """
2676
2780
 
2677
2781
  method_response = await self.api.request_raw(
2678
- "deleteMyCommands", get_params(locals())
2782
+ "deleteMyCommands",
2783
+ get_params(locals()),
2679
2784
  )
2680
2785
  return full_result(method_response, bool)
2681
2786
 
@@ -2697,7 +2802,8 @@ class APIMethods:
2697
2802
  """
2698
2803
 
2699
2804
  method_response = await self.api.request_raw(
2700
- "getMyCommands", get_params(locals())
2805
+ "getMyCommands",
2806
+ get_params(locals()),
2701
2807
  )
2702
2808
  return full_result(method_response, list[BotCommand])
2703
2809
 
@@ -2718,7 +2824,10 @@ class APIMethods:
2718
2824
  all users for whose language there is no dedicated name.
2719
2825
  """
2720
2826
 
2721
- method_response = await self.api.request_raw("setMyName", get_params(locals()))
2827
+ method_response = await self.api.request_raw(
2828
+ "setMyName",
2829
+ get_params(locals()),
2830
+ )
2722
2831
  return full_result(method_response, bool)
2723
2832
 
2724
2833
  async def get_my_name(
@@ -2734,7 +2843,10 @@ class APIMethods:
2734
2843
  :param language_code: A two-letter ISO 639-1 language code or an empty string.
2735
2844
  """
2736
2845
 
2737
- method_response = await self.api.request_raw("getMyName", get_params(locals()))
2846
+ method_response = await self.api.request_raw(
2847
+ "getMyName",
2848
+ get_params(locals()),
2849
+ )
2738
2850
  return full_result(method_response, BotName)
2739
2851
 
2740
2852
  async def set_my_description(
@@ -2756,7 +2868,8 @@ class APIMethods:
2756
2868
  """
2757
2869
 
2758
2870
  method_response = await self.api.request_raw(
2759
- "setMyDescription", get_params(locals())
2871
+ "setMyDescription",
2872
+ get_params(locals()),
2760
2873
  )
2761
2874
  return full_result(method_response, bool)
2762
2875
 
@@ -2774,7 +2887,8 @@ class APIMethods:
2774
2887
  """
2775
2888
 
2776
2889
  method_response = await self.api.request_raw(
2777
- "getMyDescription", get_params(locals())
2890
+ "getMyDescription",
2891
+ get_params(locals()),
2778
2892
  )
2779
2893
  return full_result(method_response, BotDescription)
2780
2894
 
@@ -2798,7 +2912,8 @@ class APIMethods:
2798
2912
  """
2799
2913
 
2800
2914
  method_response = await self.api.request_raw(
2801
- "setMyShortDescription", get_params(locals())
2915
+ "setMyShortDescription",
2916
+ get_params(locals()),
2802
2917
  )
2803
2918
  return full_result(method_response, bool)
2804
2919
 
@@ -2816,7 +2931,8 @@ class APIMethods:
2816
2931
  """
2817
2932
 
2818
2933
  method_response = await self.api.request_raw(
2819
- "getMyShortDescription", get_params(locals())
2934
+ "getMyShortDescription",
2935
+ get_params(locals()),
2820
2936
  )
2821
2937
  return full_result(method_response, BotShortDescription)
2822
2938
 
@@ -2838,7 +2954,8 @@ class APIMethods:
2838
2954
  """
2839
2955
 
2840
2956
  method_response = await self.api.request_raw(
2841
- "setChatMenuButton", get_params(locals())
2957
+ "setChatMenuButton",
2958
+ get_params(locals()),
2842
2959
  )
2843
2960
  return full_result(method_response, bool)
2844
2961
 
@@ -2859,7 +2976,8 @@ class APIMethods:
2859
2976
  """
2860
2977
 
2861
2978
  method_response = await self.api.request_raw(
2862
- "getChatMenuButton", get_params(locals())
2979
+ "getChatMenuButton",
2980
+ get_params(locals()),
2863
2981
  )
2864
2982
  return full_result(
2865
2983
  method_response,
@@ -2888,7 +3006,8 @@ class APIMethods:
2888
3006
  """
2889
3007
 
2890
3008
  method_response = await self.api.request_raw(
2891
- "setMyDefaultAdministratorRights", get_params(locals())
3009
+ "setMyDefaultAdministratorRights",
3010
+ get_params(locals()),
2892
3011
  )
2893
3012
  return full_result(method_response, bool)
2894
3013
 
@@ -2908,7 +3027,8 @@ class APIMethods:
2908
3027
  """
2909
3028
 
2910
3029
  method_response = await self.api.request_raw(
2911
- "getMyDefaultAdministratorRights", get_params(locals())
3030
+ "getMyDefaultAdministratorRights",
3031
+ get_params(locals()),
2912
3032
  )
2913
3033
  return full_result(method_response, ChatAdministratorRights)
2914
3034
 
@@ -2953,7 +3073,8 @@ class APIMethods:
2953
3073
  """
2954
3074
 
2955
3075
  method_response = await self.api.request_raw(
2956
- "editMessageText", get_params(locals())
3076
+ "editMessageText",
3077
+ get_params(locals()),
2957
3078
  )
2958
3079
  return full_result(method_response, Variative[Message, bool])
2959
3080
 
@@ -2995,7 +3116,8 @@ class APIMethods:
2995
3116
  """
2996
3117
 
2997
3118
  method_response = await self.api.request_raw(
2998
- "editMessageCaption", get_params(locals())
3119
+ "editMessageCaption",
3120
+ get_params(locals()),
2999
3121
  )
3000
3122
  return full_result(method_response, Variative[Message, bool])
3001
3123
 
@@ -3033,7 +3155,8 @@ class APIMethods:
3033
3155
  """
3034
3156
 
3035
3157
  method_response = await self.api.request_raw(
3036
- "editMessageMedia", get_params(locals())
3158
+ "editMessageMedia",
3159
+ get_params(locals()),
3037
3160
  )
3038
3161
  return full_result(method_response, Variative[Message, bool])
3039
3162
 
@@ -3082,7 +3205,8 @@ class APIMethods:
3082
3205
  """
3083
3206
 
3084
3207
  method_response = await self.api.request_raw(
3085
- "editMessageLiveLocation", get_params(locals())
3208
+ "editMessageLiveLocation",
3209
+ get_params(locals()),
3086
3210
  )
3087
3211
  return full_result(method_response, Variative[Message, bool])
3088
3212
 
@@ -3113,7 +3237,8 @@ class APIMethods:
3113
3237
  """
3114
3238
 
3115
3239
  method_response = await self.api.request_raw(
3116
- "stopMessageLiveLocation", get_params(locals())
3240
+ "stopMessageLiveLocation",
3241
+ get_params(locals()),
3117
3242
  )
3118
3243
  return full_result(method_response, Variative[Message, bool])
3119
3244
 
@@ -3144,7 +3269,8 @@ class APIMethods:
3144
3269
  """
3145
3270
 
3146
3271
  method_response = await self.api.request_raw(
3147
- "editMessageReplyMarkup", get_params(locals())
3272
+ "editMessageReplyMarkup",
3273
+ get_params(locals()),
3148
3274
  )
3149
3275
  return full_result(method_response, Variative[Message, bool])
3150
3276
 
@@ -3168,7 +3294,10 @@ class APIMethods:
3168
3294
  :param reply_markup: A JSON-serialized object for a new message inline keyboard.
3169
3295
  """
3170
3296
 
3171
- method_response = await self.api.request_raw("stopPoll", get_params(locals()))
3297
+ method_response = await self.api.request_raw(
3298
+ "stopPoll",
3299
+ get_params(locals()),
3300
+ )
3172
3301
  return full_result(method_response, Poll)
3173
3302
 
3174
3303
  async def delete_message(
@@ -3198,7 +3327,8 @@ class APIMethods:
3198
3327
  """
3199
3328
 
3200
3329
  method_response = await self.api.request_raw(
3201
- "deleteMessage", get_params(locals())
3330
+ "deleteMessage",
3331
+ get_params(locals()),
3202
3332
  )
3203
3333
  return full_result(method_response, bool)
3204
3334
 
@@ -3217,12 +3347,13 @@ class APIMethods:
3217
3347
  :param chat_id: Unique identifier for the target chat or username of the target channel \
3218
3348
  (in the format @channelusername).
3219
3349
 
3220
- :param message_ids: Identifiers of 1-100 messages to delete. See deleteMessage for limitations \
3221
- on which messages can be deleted.
3350
+ :param message_ids: A JSON-serialized list of 1-100 identifiers of messages to delete. See \
3351
+ deleteMessage for limitations on which messages can be deleted.
3222
3352
  """
3223
3353
 
3224
3354
  method_response = await self.api.request_raw(
3225
- "deleteMessages", get_params(locals())
3355
+ "deleteMessages",
3356
+ get_params(locals()),
3226
3357
  )
3227
3358
  return full_result(method_response, bool)
3228
3359
 
@@ -3279,7 +3410,8 @@ class APIMethods:
3279
3410
  """
3280
3411
 
3281
3412
  method_response = await self.api.request_raw(
3282
- "sendSticker", get_params(locals())
3413
+ "sendSticker",
3414
+ get_params(locals()),
3283
3415
  )
3284
3416
  return full_result(method_response, Message)
3285
3417
 
@@ -3296,7 +3428,8 @@ class APIMethods:
3296
3428
  """
3297
3429
 
3298
3430
  method_response = await self.api.request_raw(
3299
- "getStickerSet", get_params(locals())
3431
+ "getStickerSet",
3432
+ get_params(locals()),
3300
3433
  )
3301
3434
  return full_result(method_response, StickerSet)
3302
3435
 
@@ -3310,12 +3443,13 @@ class APIMethods:
3310
3443
  Use this method to get information about custom emoji stickers by their
3311
3444
  identifiers. Returns an Array of Sticker objects.
3312
3445
 
3313
- :param custom_emoji_ids: List of custom emoji identifiers. At most 200 custom emoji identifiers \
3314
- can be specified.
3446
+ :param custom_emoji_ids: A JSON-serialized list of custom emoji identifiers. At most 200 custom \
3447
+ emoji identifiers can be specified.
3315
3448
  """
3316
3449
 
3317
3450
  method_response = await self.api.request_raw(
3318
- "getCustomEmojiStickers", get_params(locals())
3451
+ "getCustomEmojiStickers",
3452
+ get_params(locals()),
3319
3453
  )
3320
3454
  return full_result(method_response, list[Sticker])
3321
3455
 
@@ -3323,7 +3457,7 @@ class APIMethods:
3323
3457
  self,
3324
3458
  user_id: int,
3325
3459
  sticker: InputFile,
3326
- sticker_format: str,
3460
+ sticker_format: typing.Literal["static", "animated", "video"],
3327
3461
  **other: typing.Any,
3328
3462
  ) -> Result[File, "APIError"]:
3329
3463
  """Method `uploadStickerFile`, see the [documentation](https://core.telegram.org/bots/api#uploadstickerfile)
@@ -3341,7 +3475,8 @@ class APIMethods:
3341
3475
  """
3342
3476
 
3343
3477
  method_response = await self.api.request_raw(
3344
- "uploadStickerFile", get_params(locals())
3478
+ "uploadStickerFile",
3479
+ get_params(locals()),
3345
3480
  )
3346
3481
  return full_result(method_response, File)
3347
3482
 
@@ -3351,8 +3486,9 @@ class APIMethods:
3351
3486
  name: str,
3352
3487
  title: str,
3353
3488
  stickers: list[InputSticker],
3354
- sticker_format: str,
3355
- sticker_type: str | Option[str] = Nothing,
3489
+ sticker_format: typing.Literal["static", "animated", "video"],
3490
+ sticker_type: typing.Literal["regular", "mask", "custom_emoji"]
3491
+ | Option[typing.Literal["regular", "mask", "custom_emoji"]] = Nothing,
3356
3492
  needs_repainting: bool | Option[bool] = Nothing,
3357
3493
  **other: typing.Any,
3358
3494
  ) -> Result[bool, "APIError"]:
@@ -3385,7 +3521,8 @@ class APIMethods:
3385
3521
  """
3386
3522
 
3387
3523
  method_response = await self.api.request_raw(
3388
- "createNewStickerSet", get_params(locals())
3524
+ "createNewStickerSet",
3525
+ get_params(locals()),
3389
3526
  )
3390
3527
  return full_result(method_response, bool)
3391
3528
 
@@ -3414,7 +3551,8 @@ class APIMethods:
3414
3551
  """
3415
3552
 
3416
3553
  method_response = await self.api.request_raw(
3417
- "addStickerToSet", get_params(locals())
3554
+ "addStickerToSet",
3555
+ get_params(locals()),
3418
3556
  )
3419
3557
  return full_result(method_response, bool)
3420
3558
 
@@ -3435,7 +3573,8 @@ class APIMethods:
3435
3573
  """
3436
3574
 
3437
3575
  method_response = await self.api.request_raw(
3438
- "setStickerPositionInSet", get_params(locals())
3576
+ "setStickerPositionInSet",
3577
+ get_params(locals()),
3439
3578
  )
3440
3579
  return full_result(method_response, bool)
3441
3580
 
@@ -3453,7 +3592,8 @@ class APIMethods:
3453
3592
  """
3454
3593
 
3455
3594
  method_response = await self.api.request_raw(
3456
- "deleteStickerFromSet", get_params(locals())
3595
+ "deleteStickerFromSet",
3596
+ get_params(locals()),
3457
3597
  )
3458
3598
  return full_result(method_response, bool)
3459
3599
 
@@ -3475,7 +3615,8 @@ class APIMethods:
3475
3615
  """
3476
3616
 
3477
3617
  method_response = await self.api.request_raw(
3478
- "setStickerEmojiList", get_params(locals())
3618
+ "setStickerEmojiList",
3619
+ get_params(locals()),
3479
3620
  )
3480
3621
  return full_result(method_response, bool)
3481
3622
 
@@ -3498,7 +3639,8 @@ class APIMethods:
3498
3639
  """
3499
3640
 
3500
3641
  method_response = await self.api.request_raw(
3501
- "setStickerKeywords", get_params(locals())
3642
+ "setStickerKeywords",
3643
+ get_params(locals()),
3502
3644
  )
3503
3645
  return full_result(method_response, bool)
3504
3646
 
@@ -3520,7 +3662,8 @@ class APIMethods:
3520
3662
  """
3521
3663
 
3522
3664
  method_response = await self.api.request_raw(
3523
- "setStickerMaskPosition", get_params(locals())
3665
+ "setStickerMaskPosition",
3666
+ get_params(locals()),
3524
3667
  )
3525
3668
  return full_result(method_response, bool)
3526
3669
 
@@ -3541,7 +3684,8 @@ class APIMethods:
3541
3684
  """
3542
3685
 
3543
3686
  method_response = await self.api.request_raw(
3544
- "setStickerSetTitle", get_params(locals())
3687
+ "setStickerSetTitle",
3688
+ get_params(locals()),
3545
3689
  )
3546
3690
  return full_result(method_response, bool)
3547
3691
 
@@ -3577,7 +3721,8 @@ class APIMethods:
3577
3721
  """
3578
3722
 
3579
3723
  method_response = await self.api.request_raw(
3580
- "setStickerSetThumbnail", get_params(locals())
3724
+ "setStickerSetThumbnail",
3725
+ get_params(locals()),
3581
3726
  )
3582
3727
  return full_result(method_response, bool)
3583
3728
 
@@ -3599,7 +3744,8 @@ class APIMethods:
3599
3744
  """
3600
3745
 
3601
3746
  method_response = await self.api.request_raw(
3602
- "setCustomEmojiStickerSetThumbnail", get_params(locals())
3747
+ "setCustomEmojiStickerSetThumbnail",
3748
+ get_params(locals()),
3603
3749
  )
3604
3750
  return full_result(method_response, bool)
3605
3751
 
@@ -3617,7 +3763,8 @@ class APIMethods:
3617
3763
  """
3618
3764
 
3619
3765
  method_response = await self.api.request_raw(
3620
- "deleteStickerSet", get_params(locals())
3766
+ "deleteStickerSet",
3767
+ get_params(locals()),
3621
3768
  )
3622
3769
  return full_result(method_response, bool)
3623
3770
 
@@ -3656,7 +3803,8 @@ class APIMethods:
3656
3803
  """
3657
3804
 
3658
3805
  method_response = await self.api.request_raw(
3659
- "answerInlineQuery", get_params(locals())
3806
+ "answerInlineQuery",
3807
+ get_params(locals()),
3660
3808
  )
3661
3809
  return full_result(method_response, bool)
3662
3810
 
@@ -3678,7 +3826,8 @@ class APIMethods:
3678
3826
  """
3679
3827
 
3680
3828
  method_response = await self.api.request_raw(
3681
- "answerWebAppQuery", get_params(locals())
3829
+ "answerWebAppQuery",
3830
+ get_params(locals()),
3682
3831
  )
3683
3832
  return full_result(method_response, SentWebAppMessage)
3684
3833
 
@@ -3793,7 +3942,8 @@ class APIMethods:
3793
3942
  """
3794
3943
 
3795
3944
  method_response = await self.api.request_raw(
3796
- "sendInvoice", get_params(locals())
3945
+ "sendInvoice",
3946
+ get_params(locals()),
3797
3947
  )
3798
3948
  return full_result(method_response, Message)
3799
3949
 
@@ -3880,7 +4030,8 @@ class APIMethods:
3880
4030
  """
3881
4031
 
3882
4032
  method_response = await self.api.request_raw(
3883
- "createInvoiceLink", get_params(locals())
4033
+ "createInvoiceLink",
4034
+ get_params(locals()),
3884
4035
  )
3885
4036
  return full_result(method_response, str)
3886
4037
 
@@ -3914,7 +4065,8 @@ class APIMethods:
3914
4065
  """
3915
4066
 
3916
4067
  method_response = await self.api.request_raw(
3917
- "answerShippingQuery", get_params(locals())
4068
+ "answerShippingQuery",
4069
+ get_params(locals()),
3918
4070
  )
3919
4071
  return full_result(method_response, bool)
3920
4072
 
@@ -3946,7 +4098,8 @@ class APIMethods:
3946
4098
  """
3947
4099
 
3948
4100
  method_response = await self.api.request_raw(
3949
- "answerPreCheckoutQuery", get_params(locals())
4101
+ "answerPreCheckoutQuery",
4102
+ get_params(locals()),
3950
4103
  )
3951
4104
  return full_result(method_response, bool)
3952
4105
 
@@ -3973,7 +4126,8 @@ class APIMethods:
3973
4126
  """
3974
4127
 
3975
4128
  method_response = await self.api.request_raw(
3976
- "setPassportDataErrors", get_params(locals())
4129
+ "setPassportDataErrors",
4130
+ get_params(locals()),
3977
4131
  )
3978
4132
  return full_result(method_response, bool)
3979
4133
 
@@ -4010,7 +4164,10 @@ class APIMethods:
4010
4164
  button will be shown. If not empty, the first button must launch the game. \
4011
4165
  """
4012
4166
 
4013
- method_response = await self.api.request_raw("sendGame", get_params(locals()))
4167
+ method_response = await self.api.request_raw(
4168
+ "sendGame",
4169
+ get_params(locals()),
4170
+ )
4014
4171
  return full_result(method_response, Message)
4015
4172
 
4016
4173
  async def set_game_score(
@@ -4052,7 +4209,8 @@ class APIMethods:
4052
4209
  """
4053
4210
 
4054
4211
  method_response = await self.api.request_raw(
4055
- "setGameScore", get_params(locals())
4212
+ "setGameScore",
4213
+ get_params(locals()),
4056
4214
  )
4057
4215
  return full_result(method_response, Variative[Message, bool])
4058
4216
 
@@ -4083,6 +4241,7 @@ class APIMethods:
4083
4241
  """
4084
4242
 
4085
4243
  method_response = await self.api.request_raw(
4086
- "getGameHighScores", get_params(locals())
4244
+ "getGameHighScores",
4245
+ get_params(locals()),
4087
4246
  )
4088
4247
  return full_result(method_response, list[GameHighScore])