3.x Bot API 6.1 (#937)

Added support of Bot API 6.1
This commit is contained in:
Alex Root Junior 2022-06-25 18:14:29 +03:00 committed by GitHub
parent adfc89f125
commit 247ffbef69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
150 changed files with 571 additions and 1112 deletions

View file

@ -28,13 +28,13 @@ class Update(TelegramObject):
"""
update_id: int
"""The update's unique identifier. Update identifiers start from a certain positive number and increase sequentially. This ID becomes especially handy if you're using `Webhooks <https://core.telegram.org/bots/api#setwebhook>`_, since it allows you to ignore repeated updates or to restore the correct update sequence, should they get out of order. If there are no new updates for at least a week, then identifier of the next update will be chosen randomly instead of sequentially."""
"""The update's unique identifier. Update identifiers start from a certain positive number and increase sequentially. This ID becomes especially handy if you're using `webhooks <https://core.telegram.org/bots/api#setwebhook>`_, since it allows you to ignore repeated updates or to restore the correct update sequence, should they get out of order. If there are no new updates for at least a week, then identifier of the next update will be chosen randomly instead of sequentially."""
message: Optional[Message] = None
"""*Optional*. New incoming message of any kind text, photo, sticker, etc."""
"""*Optional*. New incoming message of any kind - text, photo, sticker, etc."""
edited_message: Optional[Message] = None
"""*Optional*. New version of a message that is known to the bot and was edited"""
channel_post: Optional[Message] = None
"""*Optional*. New incoming channel post of any kind text, photo, sticker, etc."""
"""*Optional*. New incoming channel post of any kind - text, photo, sticker, etc."""
edited_channel_post: Optional[Message] = None
"""*Optional*. New version of a channel post that is known to the bot and was edited"""
inline_query: Optional[InlineQuery] = None