telegrinder 0.1.dev165__py3-none-any.whl → 0.1.dev166__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.

Files changed (88) hide show
  1. telegrinder/__init__.py +22 -0
  2. telegrinder/api/abc.py +1 -1
  3. telegrinder/api/api.py +8 -6
  4. telegrinder/api/error.py +2 -3
  5. telegrinder/bot/__init__.py +14 -0
  6. telegrinder/bot/bot.py +5 -3
  7. telegrinder/bot/cute_types/__init__.py +4 -0
  8. telegrinder/bot/cute_types/base.py +22 -13
  9. telegrinder/bot/cute_types/chat_join_request.py +63 -0
  10. telegrinder/bot/cute_types/chat_member_updated.py +244 -0
  11. telegrinder/bot/cute_types/message.py +34 -7
  12. telegrinder/bot/cute_types/update.py +5 -4
  13. telegrinder/bot/cute_types/utils.py +39 -17
  14. telegrinder/bot/dispatch/__init__.py +9 -1
  15. telegrinder/bot/dispatch/composition.py +10 -8
  16. telegrinder/bot/dispatch/context.py +9 -10
  17. telegrinder/bot/dispatch/dispatch.py +29 -19
  18. telegrinder/bot/dispatch/handler/abc.py +1 -0
  19. telegrinder/bot/dispatch/handler/func.py +29 -6
  20. telegrinder/bot/dispatch/handler/message_reply.py +2 -3
  21. telegrinder/bot/dispatch/middleware/abc.py +2 -4
  22. telegrinder/bot/dispatch/process.py +4 -3
  23. telegrinder/bot/dispatch/return_manager/__init__.py +1 -1
  24. telegrinder/bot/dispatch/return_manager/abc.py +33 -21
  25. telegrinder/bot/dispatch/return_manager/callback_query.py +4 -2
  26. telegrinder/bot/dispatch/return_manager/inline_query.py +4 -2
  27. telegrinder/bot/dispatch/return_manager/message.py +12 -6
  28. telegrinder/bot/dispatch/view/__init__.py +8 -2
  29. telegrinder/bot/dispatch/view/abc.py +26 -20
  30. telegrinder/bot/dispatch/view/box.py +72 -1
  31. telegrinder/bot/dispatch/view/callback_query.py +1 -3
  32. telegrinder/bot/dispatch/view/chat_join_request.py +17 -0
  33. telegrinder/bot/dispatch/view/chat_member.py +26 -0
  34. telegrinder/bot/dispatch/view/message.py +23 -1
  35. telegrinder/bot/dispatch/view/raw.py +116 -0
  36. telegrinder/bot/dispatch/waiter_machine/__init__.py +2 -1
  37. telegrinder/bot/dispatch/waiter_machine/machine.py +73 -19
  38. telegrinder/bot/dispatch/waiter_machine/middleware.py +3 -3
  39. telegrinder/bot/dispatch/waiter_machine/short_state.py +6 -3
  40. telegrinder/bot/polling/polling.py +4 -2
  41. telegrinder/bot/rules/__init__.py +20 -12
  42. telegrinder/bot/rules/abc.py +0 -9
  43. telegrinder/bot/rules/adapter/event.py +31 -22
  44. telegrinder/bot/rules/callback_data.py +15 -20
  45. telegrinder/bot/rules/chat_join.py +47 -0
  46. telegrinder/bot/rules/enum_text.py +7 -2
  47. telegrinder/bot/rules/inline.py +3 -3
  48. telegrinder/bot/rules/is_from.py +36 -50
  49. telegrinder/bot/rules/message.py +17 -0
  50. telegrinder/bot/rules/message_entities.py +1 -1
  51. telegrinder/bot/rules/start.py +6 -4
  52. telegrinder/bot/rules/text.py +2 -1
  53. telegrinder/bot/rules/update.py +16 -0
  54. telegrinder/bot/scenario/checkbox.py +9 -7
  55. telegrinder/client/aiohttp.py +4 -4
  56. telegrinder/model.py +33 -19
  57. telegrinder/modules.py +16 -32
  58. telegrinder/msgspec_utils.py +37 -36
  59. telegrinder/node/__init__.py +12 -12
  60. telegrinder/node/attachment.py +15 -5
  61. telegrinder/node/base.py +24 -16
  62. telegrinder/node/composer.py +8 -6
  63. telegrinder/node/container.py +1 -1
  64. telegrinder/node/rule.py +4 -4
  65. telegrinder/node/source.py +4 -2
  66. telegrinder/node/tools/generator.py +1 -1
  67. telegrinder/tools/__init__.py +1 -1
  68. telegrinder/tools/error_handler/abc.py +4 -3
  69. telegrinder/tools/error_handler/error_handler.py +22 -16
  70. telegrinder/tools/formatting/html.py +15 -7
  71. telegrinder/tools/formatting/spec_html_formats.py +1 -1
  72. telegrinder/tools/global_context/abc.py +5 -1
  73. telegrinder/tools/global_context/telegrinder_ctx.py +1 -1
  74. telegrinder/tools/i18n/base.py +4 -3
  75. telegrinder/tools/i18n/simple.py +1 -3
  76. telegrinder/tools/keyboard.py +1 -1
  77. telegrinder/tools/loop_wrapper/loop_wrapper.py +24 -16
  78. telegrinder/tools/magic.py +1 -1
  79. telegrinder/types/__init__.py +206 -0
  80. telegrinder/types/enums.py +34 -0
  81. telegrinder/types/methods.py +52 -47
  82. telegrinder/types/objects.py +531 -88
  83. telegrinder/verification_utils.py +3 -1
  84. {telegrinder-0.1.dev165.dist-info → telegrinder-0.1.dev166.dist-info}/METADATA +1 -1
  85. telegrinder-0.1.dev166.dist-info/RECORD +136 -0
  86. telegrinder-0.1.dev165.dist-info/RECORD +0 -128
  87. {telegrinder-0.1.dev165.dist-info → telegrinder-0.1.dev166.dist-info}/LICENSE +0 -0
  88. {telegrinder-0.1.dev165.dist-info → telegrinder-0.1.dev166.dist-info}/WHEEL +0 -0
@@ -152,6 +152,27 @@ class BotCommandScope(Model):
152
152
  """
153
153
 
154
154
 
155
+ class BackgroundType(Model):
156
+ """Base object `BackgroundType`, see the [documentation](https://core.telegram.org/bots/api#backgroundtype).
157
+
158
+ This object describes the type of a background. Currently, it can be one of
159
+ - BackgroundTypeFill
160
+ - BackgroundTypeWallpaper
161
+ - BackgroundTypePattern
162
+ - BackgroundTypeChatTheme
163
+ """
164
+
165
+
166
+ class BackgroundFill(Model):
167
+ """Base object `BackgroundFill`, see the [documentation](https://core.telegram.org/bots/api#backgroundfill).
168
+
169
+ This object describes the way a background is filled based on the selected colors. Currently, it can be one of
170
+ - BackgroundFillSolid
171
+ - BackgroundFillGradient
172
+ - BackgroundFillFreeformGradient
173
+ """
174
+
175
+
155
176
  class Update(Model):
156
177
  """Object `Update`, see the [documentation](https://core.telegram.org/bots/api#update).
157
178
 
@@ -385,7 +406,52 @@ class Chat(Model):
385
406
  integer or double-precision float type are safe for storing this identifier."""
386
407
 
387
408
  type: ChatType
388
- """Type of chat, can be either `private`, `group`, `supergroup` or `channel`."""
409
+ """Type of the chat, can be either `private`, `group`, `supergroup` or `channel`."""
410
+
411
+ title: Option[str] = Nothing
412
+ """Optional. Title, for supergroups, channels and group chats."""
413
+
414
+ username: Option[str] = Nothing
415
+ """Optional. Username, for private chats, supergroups and channels if available."""
416
+
417
+ first_name: Option[str] = Nothing
418
+ """Optional. First name of the other party in a private chat."""
419
+
420
+ last_name: Option[str] = Nothing
421
+ """Optional. Last name of the other party in a private chat."""
422
+
423
+ is_forum: Option[bool] = Nothing
424
+ """Optional. True, if the supergroup chat is a forum (has topics enabled)."""
425
+
426
+ @property
427
+ def full_name(self) -> Option[str]:
428
+ """Optional. Full name (`first_name` + `last_name`) of the
429
+ other party in a `private` chat."""
430
+
431
+ return self.first_name.map(lambda x: x + " " + self.last_name.unwrap_or(""))
432
+
433
+
434
+ class ChatFullInfo(Model):
435
+ """Object `ChatFullInfo`, see the [documentation](https://core.telegram.org/bots/api#chatfullinfo).
436
+
437
+ This object contains full information about a chat.
438
+ """
439
+
440
+ id: int
441
+ """Unique identifier for this chat. This number may have more than 32 significant
442
+ bits and some programming languages may have difficulty/silent defects
443
+ in interpreting it. But it has at most 52 significant bits, so a signed 64-bit
444
+ integer or double-precision float type are safe for storing this identifier."""
445
+
446
+ type: ChatType
447
+ """Type of the chat, can be either `private`, `group`, `supergroup` or `channel`."""
448
+
449
+ accent_color_id: int
450
+ """Identifier of the accent color for the chat name and backgrounds of the chat
451
+ photo, reply header, and link preview. See accent colors for more details."""
452
+
453
+ max_reaction_count: int
454
+ """The maximum number of reactions that can be set on a message in the chat."""
389
455
 
390
456
  title: Option[str] = Nothing
391
457
  """Optional. Title, for supergroups, channels and group chats."""
@@ -403,140 +469,122 @@ class Chat(Model):
403
469
  """Optional. True, if the supergroup chat is a forum (has topics enabled)."""
404
470
 
405
471
  photo: Option["ChatPhoto"] = Nothing
406
- """Optional. Chat photo. Returned only in getChat."""
472
+ """Optional. Chat photo."""
407
473
 
408
474
  active_usernames: Option[list[str]] = Nothing
409
475
  """Optional. If non-empty, the list of all active chat usernames; for private
410
- chats, supergroups and channels. Returned only in getChat."""
476
+ chats, supergroups and channels."""
411
477
 
412
478
  birthdate: Option["Birthdate"] = Nothing
413
- """Optional. For private chats, the date of birth of the user. Returned only
414
- in getChat."""
479
+ """Optional. For private chats, the date of birth of the user."""
415
480
 
416
481
  business_intro: Option["BusinessIntro"] = Nothing
417
- """Optional. For private chats with business accounts, the intro of the business.
418
- Returned only in getChat."""
482
+ """Optional. For private chats with business accounts, the intro of the business."""
419
483
 
420
484
  business_location: Option["BusinessLocation"] = Nothing
421
485
  """Optional. For private chats with business accounts, the location of the
422
- business. Returned only in getChat."""
486
+ business."""
423
487
 
424
488
  business_opening_hours: Option["BusinessOpeningHours"] = Nothing
425
489
  """Optional. For private chats with business accounts, the opening hours
426
- of the business. Returned only in getChat."""
490
+ of the business."""
427
491
 
428
492
  personal_chat: Option["Chat"] = Nothing
429
- """Optional. For private chats, the personal channel of the user. Returned
430
- only in getChat."""
493
+ """Optional. For private chats, the personal channel of the user."""
431
494
 
432
495
  available_reactions: Option[
433
496
  list[Variative["ReactionTypeEmoji", "ReactionTypeCustomEmoji"]]
434
497
  ] = Nothing
435
498
  """Optional. List of available reactions allowed in the chat. If omitted,
436
- then all emoji reactions are allowed. Returned only in getChat."""
437
-
438
- accent_color_id: Option[int] = Nothing
439
- """Optional. Identifier of the accent color for the chat name and backgrounds
440
- of the chat photo, reply header, and link preview. See accent colors for
441
- more details. Returned only in getChat. Always returned in getChat."""
499
+ then all emoji reactions are allowed."""
442
500
 
443
501
  background_custom_emoji_id: Option[str] = Nothing
444
- """Optional. Custom emoji identifier of emoji chosen by the chat for the reply
445
- header and link preview background. Returned only in getChat."""
502
+ """Optional. Custom emoji identifier of the emoji chosen by the chat for the
503
+ reply header and link preview background."""
446
504
 
447
505
  profile_accent_color_id: Option[int] = Nothing
448
506
  """Optional. Identifier of the accent color for the chat's profile background.
449
- See profile accent colors for more details. Returned only in getChat."""
507
+ See profile accent colors for more details."""
450
508
 
451
509
  profile_background_custom_emoji_id: Option[str] = Nothing
452
510
  """Optional. Custom emoji identifier of the emoji chosen by the chat for its
453
- profile background. Returned only in getChat."""
511
+ profile background."""
454
512
 
455
513
  emoji_status_custom_emoji_id: Option[str] = Nothing
456
514
  """Optional. Custom emoji identifier of the emoji status of the chat or the
457
- other party in a private chat. Returned only in getChat."""
515
+ other party in a private chat."""
458
516
 
459
517
  emoji_status_expiration_date: Option[datetime] = Nothing
460
518
  """Optional. Expiration date of the emoji status of the chat or the other party
461
- in a private chat, in Unix time, if any. Returned only in getChat."""
519
+ in a private chat, in Unix time, if any."""
462
520
 
463
521
  bio: Option[str] = Nothing
464
- """Optional. Bio of the other party in a private chat. Returned only in getChat."""
522
+ """Optional. Bio of the other party in a private chat."""
465
523
 
466
524
  has_private_forwards: Option[bool] = Nothing
467
525
  """Optional. True, if privacy settings of the other party in the private chat
468
- allows to use tg://user?id=<user_id> links only in chats with the user.
469
- Returned only in getChat."""
526
+ allows to use tg://user?id=<user_id> links only in chats with the user."""
470
527
 
471
528
  has_restricted_voice_and_video_messages: Option[bool] = Nothing
472
529
  """Optional. True, if the privacy settings of the other party restrict sending
473
- voice and video note messages in the private chat. Returned only in getChat."""
530
+ voice and video note messages in the private chat."""
474
531
 
475
532
  join_to_send_messages: Option[bool] = Nothing
476
533
  """Optional. True, if users need to join the supergroup before they can send
477
- messages. Returned only in getChat."""
534
+ messages."""
478
535
 
479
536
  join_by_request: Option[bool] = Nothing
480
537
  """Optional. True, if all users directly joining the supergroup need to be
481
- approved by supergroup administrators. Returned only in getChat."""
538
+ approved by supergroup administrators."""
482
539
 
483
540
  description: Option[str] = Nothing
484
- """Optional. Description, for groups, supergroups and channel chats. Returned
485
- only in getChat."""
541
+ """Optional. Description, for groups, supergroups and channel chats."""
486
542
 
487
543
  invite_link: Option[str] = Nothing
488
- """Optional. Primary invite link, for groups, supergroups and channel chats.
489
- Returned only in getChat."""
544
+ """Optional. Primary invite link, for groups, supergroups and channel chats."""
490
545
 
491
546
  pinned_message: Option["Message"] = Nothing
492
- """Optional. The most recent pinned message (by sending date). Returned only
493
- in getChat."""
547
+ """Optional. The most recent pinned message (by sending date)."""
494
548
 
495
549
  permissions: Option["ChatPermissions"] = Nothing
496
- """Optional. Default chat member permissions, for groups and supergroups.
497
- Returned only in getChat."""
550
+ """Optional. Default chat member permissions, for groups and supergroups."""
498
551
 
499
552
  slow_mode_delay: Option[int] = Nothing
500
553
  """Optional. For supergroups, the minimum allowed delay between consecutive
501
- messages sent by each unprivileged user; in seconds. Returned only in getChat."""
554
+ messages sent by each unprivileged user; in seconds."""
502
555
 
503
556
  unrestrict_boost_count: Option[int] = Nothing
504
557
  """Optional. For supergroups, the minimum number of boosts that a non-administrator
505
- user needs to add in order to ignore slow mode and chat permissions. Returned
506
- only in getChat."""
558
+ user needs to add in order to ignore slow mode and chat permissions."""
507
559
 
508
560
  message_auto_delete_time: Option[int] = Nothing
509
561
  """Optional. The time after which all messages sent to the chat will be automatically
510
- deleted; in seconds. Returned only in getChat."""
562
+ deleted; in seconds."""
511
563
 
512
564
  has_aggressive_anti_spam_enabled: Option[bool] = Nothing
513
565
  """Optional. True, if aggressive anti-spam checks are enabled in the supergroup.
514
- The field is only available to chat administrators. Returned only in getChat."""
566
+ The field is only available to chat administrators."""
515
567
 
516
568
  has_hidden_members: Option[bool] = Nothing
517
569
  """Optional. True, if non-administrators can only get the list of bots and
518
- administrators in the chat. Returned only in getChat."""
570
+ administrators in the chat."""
519
571
 
520
572
  has_protected_content: Option[bool] = Nothing
521
- """Optional. True, if messages from the chat can't be forwarded to other chats.
522
- Returned only in getChat."""
573
+ """Optional. True, if messages from the chat can't be forwarded to other chats."""
523
574
 
524
575
  has_visible_history: Option[bool] = Nothing
525
576
  """Optional. True, if new chat members will have access to old messages; available
526
- only to chat administrators. Returned only in getChat."""
577
+ only to chat administrators."""
527
578
 
528
579
  sticker_set_name: Option[str] = Nothing
529
- """Optional. For supergroups, name of group sticker set. Returned only in
530
- getChat."""
580
+ """Optional. For supergroups, name of the group sticker set."""
531
581
 
532
582
  can_set_sticker_set: Option[bool] = Nothing
533
- """Optional. True, if the bot can change the group sticker set. Returned only
534
- in getChat."""
583
+ """Optional. True, if the bot can change the group sticker set."""
535
584
 
536
585
  custom_emoji_sticker_set_name: Option[str] = Nothing
537
586
  """Optional. For supergroups, the name of the group's custom emoji sticker
538
- set. Custom emoji from this set can be used by all users and bots in the group.
539
- Returned only in getChat."""
587
+ set. Custom emoji from this set can be used by all users and bots in the group."""
540
588
 
541
589
  linked_chat_id: Option[int] = Nothing
542
590
  """Optional. Unique identifier for the linked chat, i.e. the discussion group
@@ -544,18 +592,10 @@ class Chat(Model):
544
592
  This identifier may be greater than 32 bits and some programming languages
545
593
  may have difficulty/silent defects in interpreting it. But it is smaller
546
594
  than 52 bits, so a signed 64 bit integer or double-precision float type are
547
- safe for storing this identifier. Returned only in getChat."""
595
+ safe for storing this identifier."""
548
596
 
549
597
  location: Option["ChatLocation"] = Nothing
550
- """Optional. For supergroups, the location to which the supergroup is connected.
551
- Returned only in getChat."""
552
-
553
- @property
554
- def full_name(self) -> Option[str]:
555
- """Optional. Full name (`first_name` + `last_name`) of the
556
- other party in a `private` chat."""
557
-
558
- return self.first_name.map(lambda x: x + " " + self.last_name.unwrap_or(""))
598
+ """Optional. For supergroups, the location to which the supergroup is connected."""
559
599
 
560
600
 
561
601
  class Message(MaybeInaccessibleMessage):
@@ -819,6 +859,9 @@ class Message(MaybeInaccessibleMessage):
819
859
  boost_added: Option["ChatBoostAdded"] = Nothing
820
860
  """Optional. Service message: user boosted the chat."""
821
861
 
862
+ chat_background_set: Option["ChatBackground"] = Nothing
863
+ """Optional. Service message: chat background set."""
864
+
822
865
  forum_topic_created: Option["ForumTopicCreated"] = Nothing
823
866
  """Optional. Service message: forum topic created."""
824
867
 
@@ -1480,6 +1523,28 @@ class PollOption(Model):
1480
1523
  voter_count: int
1481
1524
  """Number of users that voted for this option."""
1482
1525
 
1526
+ text_entities: Option[list["MessageEntity"]] = Nothing
1527
+ """Optional. Special entities that appear in the option text. Currently,
1528
+ only custom emoji entities are allowed in poll option texts."""
1529
+
1530
+
1531
+ class InputPollOption(Model):
1532
+ """Object `InputPollOption`, see the [documentation](https://core.telegram.org/bots/api#inputpolloption).
1533
+
1534
+ This object contains information about one answer option in a poll to send.
1535
+ """
1536
+
1537
+ text: str
1538
+ """Option text, 1-100 characters."""
1539
+
1540
+ text_parse_mode: Option[str] = Nothing
1541
+ """Optional. Mode for parsing entities in the text. See formatting options
1542
+ for more details. Currently, only custom emoji entities are allowed."""
1543
+
1544
+ text_entities: Option[list["MessageEntity"]] = Nothing
1545
+ """Optional. A JSON-serialized list of special entities that appear in the
1546
+ poll option text. It can be specified instead of text_parse_mode."""
1547
+
1483
1548
 
1484
1549
  class PollAnswer(Model):
1485
1550
  """Object `PollAnswer`, see the [documentation](https://core.telegram.org/bots/api#pollanswer).
@@ -1532,6 +1597,10 @@ class Poll(Model):
1532
1597
  allows_multiple_answers: bool
1533
1598
  """True, if the poll allows multiple answers."""
1534
1599
 
1600
+ question_entities: Option[list["MessageEntity"]] = Nothing
1601
+ """Optional. Special entities that appear in the question. Currently, only
1602
+ custom emoji entities are allowed in poll questions."""
1603
+
1535
1604
  correct_option_id: Option[int] = Nothing
1536
1605
  """Optional. 0-based identifier of the correct answer option. Available
1537
1606
  only for polls in the quiz mode, which are closed, or was sent (not forwarded)
@@ -1661,6 +1730,149 @@ class ChatBoostAdded(Model):
1661
1730
  """Number of boosts added by the user."""
1662
1731
 
1663
1732
 
1733
+ class BackgroundFillSolid(BackgroundFill):
1734
+ """Object `BackgroundFillSolid`, see the [documentation](https://core.telegram.org/bots/api#backgroundfillsolid).
1735
+
1736
+ The background is filled using the selected color.
1737
+ """
1738
+
1739
+ type: typing.Literal["solid"]
1740
+ """Type of the background fill, always `solid`."""
1741
+
1742
+ color: int
1743
+ """The color of the background fill in the RGB24 format."""
1744
+
1745
+
1746
+ class BackgroundFillGradient(BackgroundFill):
1747
+ """Object `BackgroundFillGradient`, see the [documentation](https://core.telegram.org/bots/api#backgroundfillgradient).
1748
+
1749
+ The background is a gradient fill.
1750
+ """
1751
+
1752
+ type: typing.Literal["gradient"]
1753
+ """Type of the background fill, always `gradient`."""
1754
+
1755
+ top_color: int
1756
+ """Top color of the gradient in the RGB24 format."""
1757
+
1758
+ bottom_color: int
1759
+ """Bottom color of the gradient in the RGB24 format."""
1760
+
1761
+ rotation_angle: int
1762
+ """Clockwise rotation angle of the background fill in degrees; 0-359."""
1763
+
1764
+
1765
+ class BackgroundFillFreeformGradient(BackgroundFill):
1766
+ """Object `BackgroundFillFreeformGradient`, see the [documentation](https://core.telegram.org/bots/api#backgroundfillfreeformgradient).
1767
+
1768
+ The background is a freeform gradient that rotates after every message in the chat.
1769
+ """
1770
+
1771
+ type: typing.Literal["freeform_gradient"]
1772
+ """Type of the background fill, always `freeform_gradient`."""
1773
+
1774
+ colors: list[int]
1775
+ """A list of the 3 or 4 base colors that are used to generate the freeform gradient
1776
+ in the RGB24 format."""
1777
+
1778
+
1779
+ class BackgroundTypeFill(BackgroundType):
1780
+ """Object `BackgroundTypeFill`, see the [documentation](https://core.telegram.org/bots/api#backgroundtypefill).
1781
+
1782
+ The background is automatically filled based on the selected colors.
1783
+ """
1784
+
1785
+ type: typing.Literal["fill"]
1786
+ """Type of the background, always `fill`."""
1787
+
1788
+ fill: Variative[
1789
+ "BackgroundFillSolid", "BackgroundFillGradient", "BackgroundFillFreeformGradient"
1790
+ ]
1791
+ """The background fill."""
1792
+
1793
+ dark_theme_dimming: int
1794
+ """Dimming of the background in dark themes, as a percentage; 0-100."""
1795
+
1796
+
1797
+ class BackgroundTypeWallpaper(BackgroundType):
1798
+ """Object `BackgroundTypeWallpaper`, see the [documentation](https://core.telegram.org/bots/api#backgroundtypewallpaper).
1799
+
1800
+ The background is a wallpaper in the JPEG format.
1801
+ """
1802
+
1803
+ type: typing.Literal["wallpaper"]
1804
+ """Type of the background, always `wallpaper`."""
1805
+
1806
+ document: "Document"
1807
+ """Document with the wallpaper."""
1808
+
1809
+ dark_theme_dimming: int
1810
+ """Dimming of the background in dark themes, as a percentage; 0-100."""
1811
+
1812
+ is_blurred: Option[bool] = Nothing
1813
+ """Optional. True, if the wallpaper is downscaled to fit in a 450x450 square
1814
+ and then box-blurred with radius 12."""
1815
+
1816
+ is_moving: Option[bool] = Nothing
1817
+ """Optional. True, if the background moves slightly when the device is tilted."""
1818
+
1819
+
1820
+ class BackgroundTypePattern(BackgroundType):
1821
+ """Object `BackgroundTypePattern`, see the [documentation](https://core.telegram.org/bots/api#backgroundtypepattern).
1822
+
1823
+ The background is a PNG or TGV (gzipped subset of SVG with MIME type "application/x-tgwallpattern") pattern to be combined with the background fill chosen by the user.
1824
+ """
1825
+
1826
+ type: typing.Literal["pattern"]
1827
+ """Type of the background, always `pattern`."""
1828
+
1829
+ document: "Document"
1830
+ """Document with the pattern."""
1831
+
1832
+ fill: Variative[
1833
+ "BackgroundFillSolid", "BackgroundFillGradient", "BackgroundFillFreeformGradient"
1834
+ ]
1835
+ """The background fill that is combined with the pattern."""
1836
+
1837
+ intensity: int
1838
+ """Intensity of the pattern when it is shown above the filled background; 0-100."""
1839
+
1840
+ is_inverted: Option[bool] = Nothing
1841
+ """Optional. True, if the background fill must be applied only to the pattern
1842
+ itself. All other pixels are black in this case. For dark themes only."""
1843
+
1844
+ is_moving: Option[bool] = Nothing
1845
+ """Optional. True, if the background moves slightly when the device is tilted."""
1846
+
1847
+
1848
+ class BackgroundTypeChatTheme(BackgroundType):
1849
+ """Object `BackgroundTypeChatTheme`, see the [documentation](https://core.telegram.org/bots/api#backgroundtypechattheme).
1850
+
1851
+ The background is taken directly from a built-in chat theme.
1852
+ """
1853
+
1854
+ type: typing.Literal["chat_theme"]
1855
+ """Type of the background, always `chat_theme`."""
1856
+
1857
+ theme_name: str
1858
+ """Name of the chat theme, which is usually an emoji."""
1859
+
1860
+
1861
+ class ChatBackground(Model):
1862
+ """Object `ChatBackground`, see the [documentation](https://core.telegram.org/bots/api#chatbackground).
1863
+
1864
+ This object represents a chat background.
1865
+ """
1866
+
1867
+ type: Variative[
1868
+ "BackgroundTypeFill",
1869
+ "BackgroundTypeWallpaper",
1870
+ "BackgroundTypePattern",
1871
+ "BackgroundTypeChatTheme",
1872
+ ]
1873
+ """Type of the background."""
1874
+
1875
+
1664
1876
  class ForumTopicCreated(Model):
1665
1877
  """Object `ForumTopicCreated`, see the [documentation](https://core.telegram.org/bots/api#forumtopiccreated).
1666
1878
 
@@ -1722,7 +1934,7 @@ class GeneralForumTopicUnhidden(Model):
1722
1934
  class SharedUser(Model):
1723
1935
  """Object `SharedUser`, see the [documentation](https://core.telegram.org/bots/api#shareduser).
1724
1936
 
1725
- This object contains information about a user that was shared with the bot using a KeyboardButtonRequestUser button.
1937
+ This object contains information about a user that was shared with the bot using a KeyboardButtonRequestUsers button.
1726
1938
  """
1727
1939
 
1728
1940
  user_id: int
@@ -2028,7 +2240,7 @@ class WebAppInfo(Model):
2028
2240
  class ReplyKeyboardMarkup(Model):
2029
2241
  """Object `ReplyKeyboardMarkup`, see the [documentation](https://core.telegram.org/bots/api#replykeyboardmarkup).
2030
2242
 
2031
- This object represents a custom keyboard with reply options (see Introduction to bots for details and examples).
2243
+ This object represents a custom keyboard with reply options (see Introduction to bots for details and examples). Not supported in channels and for messages sent on behalf of a Telegram Business account.
2032
2244
  """
2033
2245
 
2034
2246
  keyboard: list[list["KeyboardButton"]]
@@ -2132,19 +2344,19 @@ class KeyboardButtonRequestUsers(Model):
2132
2344
  1."""
2133
2345
 
2134
2346
  request_name: Option[bool] = Nothing
2135
- """Optional. Pass True to request the users' first and last name."""
2347
+ """Optional. Pass True to request the users' first and last names."""
2136
2348
 
2137
2349
  request_username: Option[bool] = Nothing
2138
- """Optional. Pass True to request the users' username."""
2350
+ """Optional. Pass True to request the users' usernames."""
2139
2351
 
2140
2352
  request_photo: Option[bool] = Nothing
2141
- """Optional. Pass True to request the users' photo."""
2353
+ """Optional. Pass True to request the users' photos."""
2142
2354
 
2143
2355
 
2144
2356
  class KeyboardButtonRequestChat(Model):
2145
2357
  """Object `KeyboardButtonRequestChat`, see the [documentation](https://core.telegram.org/bots/api#keyboardbuttonrequestchat).
2146
2358
 
2147
- This object defines the criteria used to request a suitable chat. Information about the selected chat will be shared with the bot when the corresponding button is pressed. The bot will be granted requested rights in the сhat if appropriate More about requesting chats: https://core.telegram.org/bots/features#chat-and-user-selection
2359
+ This object defines the criteria used to request a suitable chat. Information about the selected chat will be shared with the bot when the corresponding button is pressed. The bot will be granted requested rights in the chat if appropriate. More about requesting chats: https://core.telegram.org/bots/features#chat-and-user-selection.
2148
2360
  """
2149
2361
 
2150
2362
  request_id: int
@@ -2207,7 +2419,7 @@ class KeyboardButtonPollType(Model):
2207
2419
  class ReplyKeyboardRemove(Model):
2208
2420
  """Object `ReplyKeyboardRemove`, see the [documentation](https://core.telegram.org/bots/api#replykeyboardremove).
2209
2421
 
2210
- Upon receiving a message with this object, Telegram clients will remove the current custom keyboard and display the default letter-keyboard. By default, custom keyboards are displayed until a new keyboard is sent by a bot. An exception is made for one-time keyboards that are hidden immediately after the user presses a button (see ReplyKeyboardMarkup).
2422
+ Upon receiving a message with this object, Telegram clients will remove the current custom keyboard and display the default letter-keyboard. By default, custom keyboards are displayed until a new keyboard is sent by a bot. An exception is made for one-time keyboards that are hidden immediately after the user presses a button (see ReplyKeyboardMarkup). Not supported in channels and for messages sent on behalf of a Telegram Business account.
2211
2423
  """
2212
2424
 
2213
2425
  remove_keyboard: bool
@@ -2252,13 +2464,15 @@ class InlineKeyboardButton(Model):
2252
2464
 
2253
2465
  callback_data: Option[str] = Nothing
2254
2466
  """Optional. Data to be sent in a callback query to the bot when button is pressed,
2255
- 1-64 bytes."""
2467
+ 1-64 bytes. Not supported for messages sent on behalf of a Telegram Business
2468
+ account."""
2256
2469
 
2257
2470
  web_app: Option["WebAppInfo"] = Nothing
2258
2471
  """Optional. Description of the Web App that will be launched when the user
2259
2472
  presses the button. The Web App will be able to send an arbitrary message
2260
2473
  on behalf of the user using the method answerWebAppQuery. Available only
2261
- in private chats between a user and the bot."""
2474
+ in private chats between a user and the bot. Not supported for messages sent
2475
+ on behalf of a Telegram Business account."""
2262
2476
 
2263
2477
  login_url: Option["LoginUrl"] = Nothing
2264
2478
  """Optional. An HTTPS URL used to automatically authorize the user. Can be
@@ -2268,19 +2482,22 @@ class InlineKeyboardButton(Model):
2268
2482
  """Optional. If set, pressing the button will prompt the user to select one
2269
2483
  of their chats, open that chat and insert the bot's username and the specified
2270
2484
  inline query in the input field. May be empty, in which case just the bot's
2271
- username will be inserted."""
2485
+ username will be inserted. Not supported for messages sent on behalf of
2486
+ a Telegram Business account."""
2272
2487
 
2273
2488
  switch_inline_query_current_chat: Option[str] = Nothing
2274
2489
  """Optional. If set, pressing the button will insert the bot's username and
2275
2490
  the specified inline query in the current chat's input field. May be empty,
2276
2491
  in which case only the bot's username will be inserted. This offers a quick
2277
2492
  way for the user to open your bot in inline mode in the same chat - good for selecting
2278
- something from multiple options."""
2493
+ something from multiple options. Not supported in channels and for messages
2494
+ sent on behalf of a Telegram Business account."""
2279
2495
 
2280
2496
  switch_inline_query_chosen_chat: Option["SwitchInlineQueryChosenChat"] = Nothing
2281
2497
  """Optional. If set, pressing the button will prompt the user to select one
2282
2498
  of their chats of the specified type, open that chat and insert the bot's
2283
- username and the specified inline query in the input field."""
2499
+ username and the specified inline query in the input field. Not supported
2500
+ for messages sent on behalf of a Telegram Business account."""
2284
2501
 
2285
2502
  callback_game: Option["CallbackGame"] = Nothing
2286
2503
  """Optional. Description of the game that will be launched when the user presses
@@ -2381,7 +2598,7 @@ class CallbackQuery(Model):
2381
2598
  class ForceReply(Model):
2382
2599
  """Object `ForceReply`, see the [documentation](https://core.telegram.org/bots/api#forcereply).
2383
2600
 
2384
- Upon receiving a message with this object, Telegram clients will display a reply interface to the user (act as if the user has selected the bot's message and tapped 'Reply'). This can be extremely useful if you want to create user-friendly step-by-step interfaces without having to sacrifice privacy mode.
2601
+ Upon receiving a message with this object, Telegram clients will display a reply interface to the user (act as if the user has selected the bot's message and tapped 'Reply'). This can be extremely useful if you want to create user-friendly step-by-step interfaces without having to sacrifice privacy mode. Not supported in channels and for messages sent on behalf of a Telegram Business account.
2385
2602
  """
2386
2603
 
2387
2604
  force_reply: bool
@@ -2500,7 +2717,8 @@ class ChatAdministratorRights(Model):
2500
2717
  """True, if the administrator can post stories to the chat."""
2501
2718
 
2502
2719
  can_edit_stories: bool
2503
- """True, if the administrator can edit stories posted by other users."""
2720
+ """True, if the administrator can edit stories posted by other users, post
2721
+ stories to the chat page, pin chat stories, and access the chat's story archive."""
2504
2722
 
2505
2723
  can_delete_stories: bool
2506
2724
  """True, if the administrator can delete stories posted by other users."""
@@ -2561,9 +2779,19 @@ class ChatMemberUpdated(Model):
2561
2779
  """Optional. Chat invite link, which was used by the user to join the chat; for
2562
2780
  joining by invite link events only."""
2563
2781
 
2782
+ via_join_request: Option[bool] = Nothing
2783
+ """Optional. True, if the user joined the chat after sending a direct join request
2784
+ and being approved by an administrator."""
2785
+
2564
2786
  via_chat_folder_invite_link: Option[bool] = Nothing
2565
2787
  """Optional. True, if the user joined the chat via a chat folder invite link."""
2566
2788
 
2789
+ @property
2790
+ def chat_id(self) -> int:
2791
+ """Alias `.chat_id` instead of `.chat.id`"""
2792
+
2793
+ return self.chat.id
2794
+
2567
2795
 
2568
2796
  class ChatMemberOwner(ChatMember):
2569
2797
  """Object `ChatMemberOwner`, see the [documentation](https://core.telegram.org/bots/api#chatmemberowner).
@@ -2632,7 +2860,8 @@ class ChatMemberAdministrator(ChatMember):
2632
2860
  """True, if the administrator can post stories to the chat."""
2633
2861
 
2634
2862
  can_edit_stories: bool
2635
- """True, if the administrator can edit stories posted by other users."""
2863
+ """True, if the administrator can edit stories posted by other users, post
2864
+ stories to the chat page, pin chat stories, and access the chat's story archive."""
2636
2865
 
2637
2866
  can_delete_stories: bool
2638
2867
  """True, if the administrator can delete stories posted by other users."""
@@ -2794,6 +3023,12 @@ class ChatJoinRequest(Model):
2794
3023
  invite_link: Option["ChatInviteLink"] = Nothing
2795
3024
  """Optional. Chat invite link that was used by the user to send the join request."""
2796
3025
 
3026
+ @property
3027
+ def chat_id(self) -> int:
3028
+ """`chat_id` instead of `chat.id`."""
3029
+
3030
+ return self.chat.id
3031
+
2797
3032
 
2798
3033
  class ChatPermissions(Model):
2799
3034
  """Object `ChatPermissions`, see the [documentation](https://core.telegram.org/bots/api#chatpermissions).
@@ -2852,7 +3087,7 @@ class ChatPermissions(Model):
2852
3087
  class Birthdate(Model):
2853
3088
  """Object `Birthdate`, see the [documentation](https://core.telegram.org/bots/api#birthdate).
2854
3089
 
2855
- No description yet.
3090
+ Describes the birthdate of a user.
2856
3091
  """
2857
3092
 
2858
3093
  day: int
@@ -2885,7 +3120,7 @@ class Birthdate(Model):
2885
3120
  class BusinessIntro(Model):
2886
3121
  """Object `BusinessIntro`, see the [documentation](https://core.telegram.org/bots/api#businessintro).
2887
3122
 
2888
- No description yet.
3123
+ Contains information about the start page settings of a Telegram Business account.
2889
3124
  """
2890
3125
 
2891
3126
  title: Option[str] = Nothing
@@ -2901,7 +3136,7 @@ class BusinessIntro(Model):
2901
3136
  class BusinessLocation(Model):
2902
3137
  """Object `BusinessLocation`, see the [documentation](https://core.telegram.org/bots/api#businesslocation).
2903
3138
 
2904
- No description yet.
3139
+ Contains information about the location of a Telegram Business account.
2905
3140
  """
2906
3141
 
2907
3142
  address: str
@@ -2914,7 +3149,7 @@ class BusinessLocation(Model):
2914
3149
  class BusinessOpeningHoursInterval(Model):
2915
3150
  """Object `BusinessOpeningHoursInterval`, see the [documentation](https://core.telegram.org/bots/api#businessopeninghoursinterval).
2916
3151
 
2917
- No description yet.
3152
+ Describes an interval of time during which a business is open.
2918
3153
  """
2919
3154
 
2920
3155
  opening_minute: int
@@ -2929,7 +3164,7 @@ class BusinessOpeningHoursInterval(Model):
2929
3164
  class BusinessOpeningHours(Model):
2930
3165
  """Object `BusinessOpeningHours`, see the [documentation](https://core.telegram.org/bots/api#businessopeninghours).
2931
3166
 
2932
- No description yet.
3167
+ Describes the opening hours of a business.
2933
3168
  """
2934
3169
 
2935
3170
  time_zone_name: str
@@ -3387,8 +3622,7 @@ class BusinessMessagesDeleted(Model):
3387
3622
  to the chat or the corresponding user."""
3388
3623
 
3389
3624
  message_ids: list[int]
3390
- """A JSON-serialized list of identifiers of deleted messages in the chat of
3391
- the business account."""
3625
+ """The list of identifiers of deleted messages in the chat of the business account."""
3392
3626
 
3393
3627
 
3394
3628
  class ResponseParameters(Model):
@@ -4309,8 +4543,9 @@ class InlineQueryResultLocation(InlineQueryResult):
4309
4543
  0-1500."""
4310
4544
 
4311
4545
  live_period: Option[int] = Nothing
4312
- """Optional. Period in seconds for which the location can be updated, should
4313
- be between 60 and 86400."""
4546
+ """Optional. Period in seconds during which the location can be updated, should
4547
+ be between 60 and 86400, or 0x7FFFFFFF for live locations that can be edited
4548
+ indefinitely."""
4314
4549
 
4315
4550
  heading: Option[int] = Nothing
4316
4551
  """Optional. For live locations, a direction in which the user is moving, in
@@ -4861,8 +5096,9 @@ class InputLocationMessageContent(InputMessageContent):
4861
5096
  0-1500."""
4862
5097
 
4863
5098
  live_period: Option[int] = Nothing
4864
- """Optional. Period in seconds for which the location can be updated, should
4865
- be between 60 and 86400."""
5099
+ """Optional. Period in seconds during which the location can be updated, should
5100
+ be between 60 and 86400, or 0x7FFFFFFF for live locations that can be edited
5101
+ indefinitely."""
4866
5102
 
4867
5103
  heading: Option[int] = Nothing
4868
5104
  """Optional. For live locations, a direction in which the user is moving, in
@@ -5626,3 +5862,210 @@ class GameHighScore(Model):
5626
5862
 
5627
5863
  score: int
5628
5864
  """Score."""
5865
+
5866
+
5867
+ __all__ = (
5868
+ "Animation",
5869
+ "Audio",
5870
+ "BackgroundFill",
5871
+ "BackgroundFillFreeformGradient",
5872
+ "BackgroundFillGradient",
5873
+ "BackgroundFillSolid",
5874
+ "BackgroundType",
5875
+ "BackgroundTypeChatTheme",
5876
+ "BackgroundTypeFill",
5877
+ "BackgroundTypePattern",
5878
+ "BackgroundTypeWallpaper",
5879
+ "Birthdate",
5880
+ "BotCommand",
5881
+ "BotCommandScope",
5882
+ "BotCommandScopeAllChatAdministrators",
5883
+ "BotCommandScopeAllGroupChats",
5884
+ "BotCommandScopeAllPrivateChats",
5885
+ "BotCommandScopeChat",
5886
+ "BotCommandScopeChatAdministrators",
5887
+ "BotCommandScopeChatMember",
5888
+ "BotCommandScopeDefault",
5889
+ "BotDescription",
5890
+ "BotName",
5891
+ "BotShortDescription",
5892
+ "BusinessConnection",
5893
+ "BusinessIntro",
5894
+ "BusinessLocation",
5895
+ "BusinessMessagesDeleted",
5896
+ "BusinessOpeningHours",
5897
+ "BusinessOpeningHoursInterval",
5898
+ "CallbackGame",
5899
+ "CallbackQuery",
5900
+ "Chat",
5901
+ "ChatAdministratorRights",
5902
+ "ChatBackground",
5903
+ "ChatBoost",
5904
+ "ChatBoostAdded",
5905
+ "ChatBoostRemoved",
5906
+ "ChatBoostSource",
5907
+ "ChatBoostSourceGiftCode",
5908
+ "ChatBoostSourceGiveaway",
5909
+ "ChatBoostSourcePremium",
5910
+ "ChatBoostUpdated",
5911
+ "ChatFullInfo",
5912
+ "ChatInviteLink",
5913
+ "ChatJoinRequest",
5914
+ "ChatLocation",
5915
+ "ChatMember",
5916
+ "ChatMemberAdministrator",
5917
+ "ChatMemberBanned",
5918
+ "ChatMemberLeft",
5919
+ "ChatMemberMember",
5920
+ "ChatMemberOwner",
5921
+ "ChatMemberRestricted",
5922
+ "ChatMemberUpdated",
5923
+ "ChatPermissions",
5924
+ "ChatPhoto",
5925
+ "ChatShared",
5926
+ "ChosenInlineResult",
5927
+ "Contact",
5928
+ "Dice",
5929
+ "Document",
5930
+ "EncryptedCredentials",
5931
+ "EncryptedPassportElement",
5932
+ "ExternalReplyInfo",
5933
+ "File",
5934
+ "ForceReply",
5935
+ "ForumTopic",
5936
+ "ForumTopicClosed",
5937
+ "ForumTopicCreated",
5938
+ "ForumTopicEdited",
5939
+ "ForumTopicReopened",
5940
+ "Game",
5941
+ "GameHighScore",
5942
+ "GeneralForumTopicHidden",
5943
+ "GeneralForumTopicUnhidden",
5944
+ "Giveaway",
5945
+ "GiveawayCompleted",
5946
+ "GiveawayCreated",
5947
+ "GiveawayWinners",
5948
+ "InaccessibleMessage",
5949
+ "InlineKeyboardButton",
5950
+ "InlineKeyboardMarkup",
5951
+ "InlineQuery",
5952
+ "InlineQueryResult",
5953
+ "InlineQueryResultArticle",
5954
+ "InlineQueryResultAudio",
5955
+ "InlineQueryResultCachedAudio",
5956
+ "InlineQueryResultCachedDocument",
5957
+ "InlineQueryResultCachedGif",
5958
+ "InlineQueryResultCachedMpeg4Gif",
5959
+ "InlineQueryResultCachedPhoto",
5960
+ "InlineQueryResultCachedSticker",
5961
+ "InlineQueryResultCachedVideo",
5962
+ "InlineQueryResultCachedVoice",
5963
+ "InlineQueryResultContact",
5964
+ "InlineQueryResultDocument",
5965
+ "InlineQueryResultGame",
5966
+ "InlineQueryResultGif",
5967
+ "InlineQueryResultLocation",
5968
+ "InlineQueryResultMpeg4Gif",
5969
+ "InlineQueryResultPhoto",
5970
+ "InlineQueryResultVenue",
5971
+ "InlineQueryResultVideo",
5972
+ "InlineQueryResultVoice",
5973
+ "InlineQueryResultsButton",
5974
+ "InputContactMessageContent",
5975
+ "InputFile",
5976
+ "InputInvoiceMessageContent",
5977
+ "InputLocationMessageContent",
5978
+ "InputMedia",
5979
+ "InputMediaAnimation",
5980
+ "InputMediaAudio",
5981
+ "InputMediaDocument",
5982
+ "InputMediaPhoto",
5983
+ "InputMediaVideo",
5984
+ "InputMessageContent",
5985
+ "InputPollOption",
5986
+ "InputSticker",
5987
+ "InputTextMessageContent",
5988
+ "InputVenueMessageContent",
5989
+ "Invoice",
5990
+ "KeyboardButton",
5991
+ "KeyboardButtonPollType",
5992
+ "KeyboardButtonRequestChat",
5993
+ "KeyboardButtonRequestUsers",
5994
+ "LabeledPrice",
5995
+ "LinkPreviewOptions",
5996
+ "Location",
5997
+ "LoginUrl",
5998
+ "MaskPosition",
5999
+ "MaybeInaccessibleMessage",
6000
+ "MenuButton",
6001
+ "MenuButtonCommands",
6002
+ "MenuButtonDefault",
6003
+ "MenuButtonWebApp",
6004
+ "Message",
6005
+ "MessageAutoDeleteTimerChanged",
6006
+ "MessageEntity",
6007
+ "MessageId",
6008
+ "MessageOrigin",
6009
+ "MessageOriginChannel",
6010
+ "MessageOriginChat",
6011
+ "MessageOriginHiddenUser",
6012
+ "MessageOriginUser",
6013
+ "MessageReactionCountUpdated",
6014
+ "MessageReactionUpdated",
6015
+ "Model",
6016
+ "OrderInfo",
6017
+ "PassportData",
6018
+ "PassportElementError",
6019
+ "PassportElementErrorDataField",
6020
+ "PassportElementErrorFile",
6021
+ "PassportElementErrorFiles",
6022
+ "PassportElementErrorFrontSide",
6023
+ "PassportElementErrorReverseSide",
6024
+ "PassportElementErrorSelfie",
6025
+ "PassportElementErrorTranslationFile",
6026
+ "PassportElementErrorTranslationFiles",
6027
+ "PassportElementErrorUnspecified",
6028
+ "PassportFile",
6029
+ "PhotoSize",
6030
+ "Poll",
6031
+ "PollAnswer",
6032
+ "PollOption",
6033
+ "PreCheckoutQuery",
6034
+ "ProximityAlertTriggered",
6035
+ "ReactionCount",
6036
+ "ReactionType",
6037
+ "ReactionTypeCustomEmoji",
6038
+ "ReactionTypeEmoji",
6039
+ "ReplyKeyboardMarkup",
6040
+ "ReplyKeyboardRemove",
6041
+ "ReplyParameters",
6042
+ "ResponseParameters",
6043
+ "SentWebAppMessage",
6044
+ "SharedUser",
6045
+ "ShippingAddress",
6046
+ "ShippingOption",
6047
+ "ShippingQuery",
6048
+ "Sticker",
6049
+ "StickerSet",
6050
+ "Story",
6051
+ "SuccessfulPayment",
6052
+ "SwitchInlineQueryChosenChat",
6053
+ "TextQuote",
6054
+ "Update",
6055
+ "User",
6056
+ "UserChatBoosts",
6057
+ "UserProfilePhotos",
6058
+ "UsersShared",
6059
+ "Venue",
6060
+ "Video",
6061
+ "VideoChatEnded",
6062
+ "VideoChatParticipantsInvited",
6063
+ "VideoChatScheduled",
6064
+ "VideoChatStarted",
6065
+ "VideoNote",
6066
+ "Voice",
6067
+ "WebAppData",
6068
+ "WebAppInfo",
6069
+ "WebhookInfo",
6070
+ "WriteAccessAllowed",
6071
+ )