mtkruto.types

class Animation(file_id: Annotated[str, 'fileId'], file_unique_id: Annotated[str, 'fileUniqueId'], width: Annotated[int, 'width'], height: Annotated[int, 'height'], duration: Annotated[int, 'duration'], thumbnails: Annotated[list[Thumbnail], 'thumbnails'], mime_type: Annotated[str, 'mimeType'], file_size: Annotated[int, 'fileSize'], *, file_name: Annotated[str | None, 'fileName'] = None)[source]

Bases: _Type

duration: Annotated[int, 'duration']
file_id: Annotated[str, 'fileId']
file_name: Annotated[str | None, 'fileName']
file_size: Annotated[int, 'fileSize']
file_unique_id: Annotated[str, 'fileUniqueId']
height: Annotated[int, 'height']
mime_type: Annotated[str, 'mimeType']
thumbnails: Annotated[list[Thumbnail], 'thumbnails']
width: Annotated[int, 'width']
class Audio(file_id: Annotated[str, 'fileId'], file_unique_id: Annotated[str, 'fileUniqueId'], duration: Annotated[int, 'duration'], mime_type: Annotated[str, 'mimeType'], file_size: Annotated[int, 'fileSize'], thumbnails: Annotated[list[Thumbnail], 'thumbnails'], *, performer: Annotated[str | None, 'performer'] = None, title: Annotated[str | None, 'title'] = None)[source]

Bases: _Type

duration: Annotated[int, 'duration']
file_id: Annotated[str, 'fileId']
file_size: Annotated[int, 'fileSize']
file_unique_id: Annotated[str, 'fileUniqueId']
mime_type: Annotated[str, 'mimeType']
performer: Annotated[str | None, 'performer']
thumbnails: Annotated[list[Thumbnail], 'thumbnails']
title: Annotated[str | None, 'title']
class Birthday(day: Annotated[int, 'day'], month: Annotated[int, 'month'], *, year: Annotated[int | None, 'year'] = None)[source]

Bases: _Type

day: Annotated[int, 'day']
month: Annotated[int, 'month']
year: Annotated[int | None, 'year']
class BotCommand(command: Annotated[str, 'command'], description: Annotated[str, 'description'])[source]

Bases: _Type

command: Annotated[str, 'command']
description: Annotated[str, 'description']
class BotCommandScopeAllChatAdministrators(type: Annotated[Literal['allChatAdministrators'], 'type'])[source]

Bases: _Type

type: Annotated[Literal['allChatAdministrators'], 'type']
class BotCommandScopeAllGroupChats(type: Annotated[Literal['allGroupChats'], 'type'])[source]

Bases: _Type

type: Annotated[Literal['allGroupChats'], 'type']
class BotCommandScopeAllPrivateChats(type: Annotated[Literal['allPrivateChats'], 'type'])[source]

Bases: _Type

type: Annotated[Literal['allPrivateChats'], 'type']
class BotCommandScopeChat(type: Annotated[Literal['chat'], 'type'], chat_id: Annotated[int | str | Literal['me'], 'chatId'])[source]

Bases: _Type

chat_id: Annotated[int | str | Literal['me'], 'chatId']
type: Annotated[Literal['chat'], 'type']
class BotCommandScopeChatAdministrators(type: Annotated[Literal['chatAdministrators'], 'type'], chat_id: Annotated[int | str | Literal['me'], 'chatId'])[source]

Bases: _Type

chat_id: Annotated[int | str | Literal['me'], 'chatId']
type: Annotated[Literal['chatAdministrators'], 'type']
class BotCommandScopeChatMember(type: Annotated[Literal['chatMember'], 'type'], chat_id: Annotated[int | str | Literal['me'], 'chatId'], user_id: Annotated[int, 'userId'])[source]

Bases: _Type

chat_id: Annotated[int | str | Literal['me'], 'chatId']
type: Annotated[Literal['chatMember'], 'type']
user_id: Annotated[int, 'userId']
class BotCommandScopeDefault(type: Annotated[Literal['default'], 'type'])[source]

Bases: _Type

type: Annotated[Literal['default'], 'type']
class BusinessConnection(id: Annotated[str, 'id'], user: Annotated[User, 'user'], date: Annotated[datetime, 'date'], can_reply: Annotated[bool, 'canReply'], is_enabled: Annotated[bool, 'isEnabled'])[source]

Bases: _Type

can_reply: Annotated[bool, 'canReply']
date: Annotated[datetime, 'date']
id: Annotated[str, 'id']
is_enabled: Annotated[bool, 'isEnabled']
user: Annotated[User, 'user']
class CallbackQuery(id: Annotated[str, 'id'], from_: Annotated[User, 'from'], chat_instance: Annotated[str, 'chatInstance'], *, message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'message'] = None, inline_message_id: Annotated[str | None, 'inlineMessageId'] = None, data: Annotated[str | None, 'data'] = None, game_short_name: Annotated[str | None, 'gameShortName'] = None)[source]

Bases: _Type

async answer(*, text: str | None = None, alert: bool | None = None, url: str | None = None, cache_time: int | None = None) None[source]
chat_instance: Annotated[str, 'chatInstance']
data: Annotated[str | None, 'data']
async edit_message_live_location(latitude: int | float, longitude: int | float, *, horizontal_accuracy: int | float | None = None, heading: int | float | None = None, proximity_alert_radius: int | float | None = None, reply_markup: ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None = None) None[source]
async edit_message_media(media: InputMediaAnimation | InputMediaAudio | InputMediaDocument | InputMediaPhoto | InputMediaVideo, *, reply_markup: ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None = None) None[source]
async edit_message_reply_markup(*, reply_markup: ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None = None) None[source]
async edit_message_text(text: str, *, parse_mode: Literal['HTML'] | Literal['Markdown'] | None = None, entities: List[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None = None, link_preview: LinkPreview | None = None, reply_markup: ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None = None) None[source]
from_: Annotated[User, 'from']
game_short_name: Annotated[str | None, 'gameShortName']
id: Annotated[str, 'id']
inline_message_id: Annotated[str | None, 'inlineMessageId']
message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'message']
class CallbackQueryAnswer(alert: Annotated[bool, 'alert'], text: Annotated[str, 'text'], url: Annotated[str, 'url'])[source]

Bases: _Type

alert: Annotated[bool, 'alert']
text: Annotated[str, 'text']
url: Annotated[str, 'url']
class CallbackQueryQuestionButton(type: Annotated[Literal['button'], 'type'], data: Annotated[str, 'data'])[source]

Bases: _Type

data: Annotated[str, 'data']
type: Annotated[Literal['button'], 'type']
class CallbackQueryQuestionGame(type: Annotated[Literal['game'], 'type'])[source]

Bases: _Type

type: Annotated[Literal['game'], 'type']
class CallbackQueryQuestionPassword(type: Annotated[Literal['password'], 'type'], data: Annotated[str, 'data'], password: Annotated[str, 'password'])[source]

Bases: _Type

data: Annotated[str, 'data']
password: Annotated[str, 'password']
type: Annotated[Literal['password'], 'type']
class ChatAdministratorRights(is_anonymous: Annotated[bool, 'isAnonymous'], can_manage_chat: Annotated[bool, 'canManageChat'], can_delete_messages: Annotated[bool, 'canDeleteMessages'], can_manage_video_chats: Annotated[bool, 'canManageVideoChats'], can_restrict_members: Annotated[bool, 'canRestrictMembers'], can_promote_members: Annotated[bool, 'canPromoteMembers'], can_change_info: Annotated[bool, 'canChangeInfo'], can_invite_users: Annotated[bool, 'canInviteUsers'], *, can_post_messages: Annotated[bool | None, 'canPostMessages'] = None, can_edit_messages: Annotated[bool | None, 'canEditMessages'] = None, can_pin_messages: Annotated[bool | None, 'canPinMessages'] = None, can_manage_topics: Annotated[bool | None, 'canManageTopics'] = None)[source]

Bases: _Type

can_change_info: Annotated[bool, 'canChangeInfo']
can_delete_messages: Annotated[bool, 'canDeleteMessages']
can_edit_messages: Annotated[bool | None, 'canEditMessages']
can_invite_users: Annotated[bool, 'canInviteUsers']
can_manage_chat: Annotated[bool, 'canManageChat']
can_manage_topics: Annotated[bool | None, 'canManageTopics']
can_manage_video_chats: Annotated[bool, 'canManageVideoChats']
can_pin_messages: Annotated[bool | None, 'canPinMessages']
can_post_messages: Annotated[bool | None, 'canPostMessages']
can_promote_members: Annotated[bool, 'canPromoteMembers']
can_restrict_members: Annotated[bool, 'canRestrictMembers']
is_anonymous: Annotated[bool, 'isAnonymous']
class ChatBase(*, photo: Annotated[Photo | None, 'photo'] = None)[source]

Bases: _Type

photo: Annotated[Photo | None, 'photo']
class ChatChannel(type: Annotated[Literal['channel'], 'type'], title: Annotated[str, 'title'], is_scam: Annotated[bool, 'isScam'], is_fake: Annotated[bool, 'isFake'], is_verified: Annotated[bool, 'isVerified'], is_restricted: Annotated[bool, 'isRestricted'], id: Annotated[int, 'id'], color: Annotated[int, 'color'], *, video_chat_id: Annotated[str | None, 'videoChatId'] = None, photo: Annotated[Photo | None, 'photo'] = None, username: Annotated[str | None, 'username'] = None, also: Annotated[list[str] | None, 'also'] = None, restriction_reason: Annotated[list[RestrictionReason] | None, 'restrictionReason'] = None)[source]

Bases: ChatBase, ChatPChannel

video_chat_id: Annotated[str | None, 'videoChatId']
class ChatGroup(type: Annotated[Literal['group'], 'type'], title: Annotated[str, 'title'], is_creator: Annotated[bool, 'isCreator'], id: Annotated[int, 'id'], color: Annotated[int, 'color'], *, video_chat_id: Annotated[str | None, 'videoChatId'] = None, photo: Annotated[Photo | None, 'photo'] = None)[source]

Bases: ChatBase, ChatPGroup

video_chat_id: Annotated[str | None, 'videoChatId']
class ChatListItem(chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], order: Annotated[str, 'order'], pinned: Annotated[int, 'pinned'], *, last_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'lastMessage'] = None)[source]

Bases: _Type

chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat']
last_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'lastMessage']
order: Annotated[str, 'order']
pinned: Annotated[int, 'pinned']
class ChatMemberAdministrator(status: Annotated[Literal['administrator'], 'status'], rights: Annotated[ChatAdministratorRights, 'rights'], user: Annotated[User, 'user'], *, title: Annotated[str | None, 'title'] = None)[source]

Bases: _ChatMemberBase

rights: Annotated[ChatAdministratorRights, 'rights']
status: Annotated[Literal['administrator'], 'status']
title: Annotated[str | None, 'title']
class ChatMemberBanned(status: Annotated[Literal['banned'], 'status'], user: Annotated[User, 'user'], *, until_date: Annotated[datetime | None, 'untilDate'] = None)[source]

Bases: _ChatMemberBase

status: Annotated[Literal['banned'], 'status']
until_date: Annotated[datetime | None, 'untilDate']
class ChatMemberCreator(status: Annotated[Literal['creator'], 'status'], is_anonymous: Annotated[bool, 'isAnonymous'], user: Annotated[User, 'user'], *, title: Annotated[str | None, 'title'] = None)[source]

Bases: _ChatMemberBase

is_anonymous: Annotated[bool, 'isAnonymous']
status: Annotated[Literal['creator'], 'status']
title: Annotated[str | None, 'title']
class ChatMemberLeft(status: Annotated[Literal['left'], 'status'], user: Annotated[User, 'user'])[source]

Bases: _ChatMemberBase

status: Annotated[Literal['left'], 'status']
class ChatMemberMember(status: Annotated[Literal['member'], 'status'], user: Annotated[User, 'user'])[source]

Bases: _ChatMemberBase

status: Annotated[Literal['member'], 'status']
class ChatMemberRestricted(status: Annotated[Literal['restricted'], 'status'], is_member: Annotated[bool, 'isMember'], rights: Annotated[ChatMemberRights, 'rights'], user: Annotated[User, 'user'], *, until_date: Annotated[datetime | None, 'untilDate'] = None)[source]

Bases: _ChatMemberBase

is_member: Annotated[bool, 'isMember']
rights: Annotated[ChatMemberRights, 'rights']
status: Annotated[Literal['restricted'], 'status']
until_date: Annotated[datetime | None, 'untilDate']
class ChatMemberRights(*, can_send_messages: Annotated[bool | None, 'canSendMessages'] = None, can_send_audio: Annotated[bool | None, 'canSendAudio'] = None, can_send_documents: Annotated[bool | None, 'canSendDocuments'] = None, can_send_photos: Annotated[bool | None, 'canSendPhotos'] = None, can_send_videos: Annotated[bool | None, 'canSendVideos'] = None, can_send_video_notes: Annotated[bool | None, 'canSendVideoNotes'] = None, can_send_voice: Annotated[bool | None, 'canSendVoice'] = None, can_send_polls: Annotated[bool | None, 'canSendPolls'] = None, can_send_stickers: Annotated[bool | None, 'canSendStickers'] = None, can_send_animations: Annotated[bool | None, 'canSendAnimations'] = None, can_send_games: Annotated[bool | None, 'canSendGames'] = None, can_send_inline_bot_results: Annotated[bool | None, 'canSendInlineBotResults'] = None, can_add_web_page_previews: Annotated[bool | None, 'canAddWebPagePreviews'] = None, can_change_info: Annotated[bool | None, 'canChangeInfo'] = None, can_invite_users: Annotated[bool | None, 'canInviteUsers'] = None, can_pin_messages: Annotated[bool | None, 'canPinMessages'] = None, can_manage_topics: Annotated[bool | None, 'canManageTopics'] = None)[source]

Bases: _Type

can_add_web_page_previews: Annotated[bool | None, 'canAddWebPagePreviews']
can_change_info: Annotated[bool | None, 'canChangeInfo']
can_invite_users: Annotated[bool | None, 'canInviteUsers']
can_manage_topics: Annotated[bool | None, 'canManageTopics']
can_pin_messages: Annotated[bool | None, 'canPinMessages']
can_send_animations: Annotated[bool | None, 'canSendAnimations']
can_send_audio: Annotated[bool | None, 'canSendAudio']
can_send_documents: Annotated[bool | None, 'canSendDocuments']
can_send_games: Annotated[bool | None, 'canSendGames']
can_send_inline_bot_results: Annotated[bool | None, 'canSendInlineBotResults']
can_send_messages: Annotated[bool | None, 'canSendMessages']
can_send_photos: Annotated[bool | None, 'canSendPhotos']
can_send_polls: Annotated[bool | None, 'canSendPolls']
can_send_stickers: Annotated[bool | None, 'canSendStickers']
can_send_video_notes: Annotated[bool | None, 'canSendVideoNotes']
can_send_videos: Annotated[bool | None, 'canSendVideos']
can_send_voice: Annotated[bool | None, 'canSendVoice']
class ChatMemberUpdated(chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], from_: Annotated[User, 'from'], date: Annotated[datetime, 'date'], old_chat_member: Annotated[ChatMemberCreator | ChatMemberAdministrator | ChatMemberMember | ChatMemberRestricted | ChatMemberLeft | ChatMemberBanned, 'oldChatMember'], new_chat_member: Annotated[ChatMemberCreator | ChatMemberAdministrator | ChatMemberMember | ChatMemberRestricted | ChatMemberLeft | ChatMemberBanned, 'newChatMember'], *, invite_link: Annotated[InviteLink | None, 'inviteLink'] = None, via_shared_folder: Annotated[bool | None, 'viaSharedFolder'] = None)[source]

Bases: _Type

chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat']
date: Annotated[datetime, 'date']
from_: Annotated[User, 'from']
new_chat_member: Annotated[ChatMemberCreator | ChatMemberAdministrator | ChatMemberMember | ChatMemberRestricted | ChatMemberLeft | ChatMemberBanned, 'newChatMember']
old_chat_member: Annotated[ChatMemberCreator | ChatMemberAdministrator | ChatMemberMember | ChatMemberRestricted | ChatMemberLeft | ChatMemberBanned, 'oldChatMember']
via_shared_folder: Annotated[bool | None, 'viaSharedFolder']
class ChatPChannel(type: Annotated[Literal['channel'], 'type'], title: Annotated[str, 'title'], is_scam: Annotated[bool, 'isScam'], is_fake: Annotated[bool, 'isFake'], is_verified: Annotated[bool, 'isVerified'], is_restricted: Annotated[bool, 'isRestricted'], id: Annotated[int, 'id'], color: Annotated[int, 'color'], *, username: Annotated[str | None, 'username'] = None, also: Annotated[list[str] | None, 'also'] = None, restriction_reason: Annotated[list[RestrictionReason] | None, 'restrictionReason'] = None)[source]

Bases: ChatPChannelBase

type: Annotated[Literal['channel'], 'type']
class ChatPChannelBase(title: Annotated[str, 'title'], is_scam: Annotated[bool, 'isScam'], is_fake: Annotated[bool, 'isFake'], is_verified: Annotated[bool, 'isVerified'], is_restricted: Annotated[bool, 'isRestricted'], id: Annotated[int, 'id'], type: Annotated[Literal['private', 'group', 'supergroup', 'channel'], 'type'], color: Annotated[int, 'color'], *, username: Annotated[str | None, 'username'] = None, also: Annotated[list[str] | None, 'also'] = None, restriction_reason: Annotated[list[RestrictionReason] | None, 'restrictionReason'] = None)[source]

Bases: _ChatPBase

also: Annotated[list[str] | None, 'also']
is_fake: Annotated[bool, 'isFake']
is_restricted: Annotated[bool, 'isRestricted']
is_scam: Annotated[bool, 'isScam']
is_verified: Annotated[bool, 'isVerified']
restriction_reason: Annotated[list[RestrictionReason] | None, 'restrictionReason']
title: Annotated[str, 'title']
username: Annotated[str | None, 'username']
class ChatPGroup(type: Annotated[Literal['group'], 'type'], title: Annotated[str, 'title'], is_creator: Annotated[bool, 'isCreator'], id: Annotated[int, 'id'], color: Annotated[int, 'color'])[source]

Bases: _ChatPBase

is_creator: Annotated[bool, 'isCreator']
title: Annotated[str, 'title']
type: Annotated[Literal['group'], 'type']
class ChatPPrivate(type: Annotated[Literal['private'], 'type'], first_name: Annotated[str, 'firstName'], is_scam: Annotated[bool, 'isScam'], is_fake: Annotated[bool, 'isFake'], is_support: Annotated[bool, 'isSupport'], is_verified: Annotated[bool, 'isVerified'], id: Annotated[int, 'id'], color: Annotated[int, 'color'], *, is_bot: Annotated[bool | None, 'isBot'] = None, last_name: Annotated[str | None, 'lastName'] = None, username: Annotated[str | None, 'username'] = None, also: Annotated[list[str] | None, 'also'] = None, is_restricted: Annotated[bool | None, 'isRestricted'] = None, restriction_reason: Annotated[list[RestrictionReason] | None, 'restrictionReason'] = None)[source]

Bases: _ChatPBase

also: Annotated[list[str] | None, 'also']
first_name: Annotated[str, 'firstName']
is_bot: Annotated[bool | None, 'isBot']
is_fake: Annotated[bool, 'isFake']
is_restricted: Annotated[bool | None, 'isRestricted']
is_scam: Annotated[bool, 'isScam']
is_support: Annotated[bool, 'isSupport']
is_verified: Annotated[bool, 'isVerified']
last_name: Annotated[str | None, 'lastName']
restriction_reason: Annotated[list[RestrictionReason] | None, 'restrictionReason']
type: Annotated[Literal['private'], 'type']
username: Annotated[str | None, 'username']
class ChatPSupergroup(type: Annotated[Literal['supergroup'], 'type'], is_forum: Annotated[bool, 'isForum'], title: Annotated[str, 'title'], is_scam: Annotated[bool, 'isScam'], is_fake: Annotated[bool, 'isFake'], is_verified: Annotated[bool, 'isVerified'], is_restricted: Annotated[bool, 'isRestricted'], id: Annotated[int, 'id'], color: Annotated[int, 'color'], *, username: Annotated[str | None, 'username'] = None, also: Annotated[list[str] | None, 'also'] = None, restriction_reason: Annotated[list[RestrictionReason] | None, 'restrictionReason'] = None)[source]

Bases: ChatPChannelBase

is_forum: Annotated[bool, 'isForum']
type: Annotated[Literal['supergroup'], 'type']
class ChatPhoto(small_file_id: Annotated[str, 'smallFileId'], small_file_unique_id: Annotated[str, 'smallFileUniqueId'], big_file_id: Annotated[str, 'bigFileId'], big_file_unique_id: Annotated[str, 'bigFileUniqueId'], has_video: Annotated[bool, 'hasVideo'], personal: Annotated[bool, 'personal'])[source]

Bases: _Type

big_file_id: Annotated[str, 'bigFileId']
big_file_unique_id: Annotated[str, 'bigFileUniqueId']
has_video: Annotated[bool, 'hasVideo']
personal: Annotated[bool, 'personal']
small_file_id: Annotated[str, 'smallFileId']
small_file_unique_id: Annotated[str, 'smallFileUniqueId']
class ChatPrivate(type: Annotated[Literal['private'], 'type'], first_name: Annotated[str, 'firstName'], is_scam: Annotated[bool, 'isScam'], is_fake: Annotated[bool, 'isFake'], is_support: Annotated[bool, 'isSupport'], is_verified: Annotated[bool, 'isVerified'], id: Annotated[int, 'id'], color: Annotated[int, 'color'], *, birthday: Annotated[Birthday | None, 'birthday'] = None, address: Annotated[str | None, 'address'] = None, location: Annotated[Location | None, 'location'] = None, opening_hours: Annotated[OpeningHours | None, 'openingHours'] = None, has_main_mini_app: Annotated[bool | None, 'hasMainMiniApp'] = None, photo: Annotated[Photo | None, 'photo'] = None, is_bot: Annotated[bool | None, 'isBot'] = None, last_name: Annotated[str | None, 'lastName'] = None, username: Annotated[str | None, 'username'] = None, also: Annotated[list[str] | None, 'also'] = None, is_restricted: Annotated[bool | None, 'isRestricted'] = None, restriction_reason: Annotated[list[RestrictionReason] | None, 'restrictionReason'] = None)[source]

Bases: ChatBase, ChatPPrivate

address: Annotated[str | None, 'address']
birthday: Annotated[Birthday | None, 'birthday']
has_main_mini_app: Annotated[bool | None, 'hasMainMiniApp']
location: Annotated[Location | None, 'location']
opening_hours: Annotated[OpeningHours | None, 'openingHours']
class ChatSupergroup(type: Annotated[Literal['supergroup'], 'type'], is_forum: Annotated[bool, 'isForum'], title: Annotated[str, 'title'], is_scam: Annotated[bool, 'isScam'], is_fake: Annotated[bool, 'isFake'], is_verified: Annotated[bool, 'isVerified'], is_restricted: Annotated[bool, 'isRestricted'], id: Annotated[int, 'id'], color: Annotated[int, 'color'], *, video_chat_id: Annotated[str | None, 'videoChatId'] = None, photo: Annotated[Photo | None, 'photo'] = None, username: Annotated[str | None, 'username'] = None, also: Annotated[list[str] | None, 'also'] = None, restriction_reason: Annotated[list[RestrictionReason] | None, 'restrictionReason'] = None)[source]

Bases: ChatBase, ChatPSupergroup

video_chat_id: Annotated[str | None, 'videoChatId']
class ChosenInlineResult(result_id: Annotated[str, 'resultId'], from_: Annotated[User, 'from'], query: Annotated[str, 'query'], *, location: Annotated[Location | None, 'location'] = None, inline_message_id: Annotated[str | None, 'inlineMessageId'] = None)[source]

Bases: _Type

from_: Annotated[User, 'from']
inline_message_id: Annotated[str | None, 'inlineMessageId']
location: Annotated[Location | None, 'location']
query: Annotated[str, 'query']
result_id: Annotated[str, 'resultId']
class Contact(phone_number: Annotated[str, 'phoneNumber'], first_name: Annotated[str, 'firstName'], *, last_name: Annotated[str | None, 'lastName'] = None, user_id: Annotated[int | None, 'userId'] = None, vcard: Annotated[str | None, 'vcard'] = None)[source]

Bases: _Type

first_name: Annotated[str, 'firstName']
last_name: Annotated[str | None, 'lastName']
phone_number: Annotated[str, 'phoneNumber']
user_id: Annotated[int | None, 'userId']
vcard: Annotated[str | None, 'vcard']
class Dice(emoji: Annotated[str, 'emoji'], value: Annotated[int, 'value'])[source]

Bases: _Type

emoji: Annotated[str, 'emoji']
value: Annotated[int, 'value']
class Document(file_id: Annotated[str, 'fileId'], file_unique_id: Annotated[str, 'fileUniqueId'], thumbnails: Annotated[list[Thumbnail], 'thumbnails'], file_name: Annotated[str, 'fileName'], mime_type: Annotated[str, 'mimeType'], file_size: Annotated[int, 'fileSize'])[source]

Bases: _Type

file_id: Annotated[str, 'fileId']
file_name: Annotated[str, 'fileName']
file_size: Annotated[int, 'fileSize']
file_unique_id: Annotated[str, 'fileUniqueId']
mime_type: Annotated[str, 'mimeType']
thumbnails: Annotated[list[Thumbnail], 'thumbnails']
class FailedInvitation(user_id: Annotated[int, 'userId'], premium_required_to_invite: Annotated[bool, 'premiumRequiredToInvite'], premium_required_to_send_message: Annotated[bool, 'premiumRequiredToSendMessage'])[source]

Bases: _Type

premium_required_to_invite: Annotated[bool, 'premiumRequiredToInvite']
premium_required_to_send_message: Annotated[bool, 'premiumRequiredToSendMessage']
user_id: Annotated[int, 'userId']
class ForwardHeaderChannel(type: Annotated[Literal['channel'], 'type'], chat: Annotated[ChatPChannel, 'chat'], message_id: Annotated[int, 'messageId'], date: Annotated[datetime, 'date'], *, author_signature: Annotated[str | None, 'authorSignature'] = None)[source]

Bases: _ForwardHeaderCommon

author_signature: Annotated[str | None, 'authorSignature']
chat: Annotated[ChatPChannel, 'chat']
message_id: Annotated[int, 'messageId']
type: Annotated[Literal['channel'], 'type']
class ForwardHeaderHidden(type: Annotated[Literal['hidden'], 'type'], name: Annotated[str, 'name'], date: Annotated[datetime, 'date'])[source]

Bases: _ForwardHeaderCommon

name: Annotated[str, 'name']
type: Annotated[Literal['hidden'], 'type']
class ForwardHeaderSupergroup(type: Annotated[Literal['supergroup'], 'type'], chat: Annotated[ChatPSupergroup, 'chat'], date: Annotated[datetime, 'date'], *, title: Annotated[str | None, 'title'] = None)[source]

Bases: _ForwardHeaderCommon

chat: Annotated[ChatPSupergroup, 'chat']
title: Annotated[str | None, 'title']
type: Annotated[Literal['supergroup'], 'type']
class ForwardHeaderUnsupported(type: Annotated[Literal['unsupported'], 'type'], date: Annotated[datetime, 'date'])[source]

Bases: _ForwardHeaderCommon

type: Annotated[Literal['unsupported'], 'type']
class ForwardHeaderUser(type: Annotated[Literal['user'], 'type'], user: Annotated[User, 'user'], date: Annotated[datetime, 'date'])[source]

Bases: _ForwardHeaderCommon

type: Annotated[Literal['user'], 'type']
user: Annotated[User, 'user']
class Game(title: Annotated[str, 'title'], description: Annotated[str, 'description'], photo: Annotated[Photo, 'photo'], *, text: Annotated[str | None, 'text'] = None, text_entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None, 'textEntities'] = None, animation: Annotated[Animation | None, 'animation'] = None)[source]

Bases: _Type

animation: Annotated[Animation | None, 'animation']
description: Annotated[str, 'description']
photo: Annotated[Photo, 'photo']
text: Annotated[str | None, 'text']
text_entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None, 'textEntities']
title: Annotated[str, 'title']
class Giveaway(parameters: Annotated[GiveawayParameters, 'parameters'], winner_count: Annotated[int, 'winnerCount'], *, premium_month_count: Annotated[int | None, 'premiumMonthCount'] = None, star_count: Annotated[int | None, 'starCount'] = None)[source]

Bases: _Type

parameters: Annotated[GiveawayParameters, 'parameters']
premium_month_count: Annotated[int | None, 'premiumMonthCount']
star_count: Annotated[int | None, 'starCount']
winner_count: Annotated[int, 'winnerCount']
class GiveawayParameters(boosted_chat_id: Annotated[int, 'boostedChatId'], additional_chat_ids: Annotated[list[int], 'additionalChatIds'], winner_selection_date: Annotated[datetime, 'winnerSelectionDate'], only_new_members: Annotated[bool, 'onlyNewMembers'], countries: Annotated[list[str], 'countries'])[source]

Bases: _Type

additional_chat_ids: Annotated[list[int], 'additionalChatIds']
boosted_chat_id: Annotated[int, 'boostedChatId']
countries: Annotated[list[str], 'countries']
only_new_members: Annotated[bool, 'onlyNewMembers']
winner_selection_date: Annotated[datetime, 'winnerSelectionDate']
class InactiveChat(last_activity: Annotated[datetime, 'lastActivity'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'])[source]

Bases: _Type

chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat']
last_activity: Annotated[datetime, 'lastActivity']
class InlineKeyboardButtonCallback(callback_data: Annotated[str, 'callbackData'], text: Annotated[str, 'text'])[source]

Bases: _InlineKeyboardButtonBase

callback_data: Annotated[str, 'callbackData']
class InlineKeyboardButtonCopy(copy: Annotated[str, 'copy'], text: Annotated[str, 'text'])[source]

Bases: _InlineKeyboardButtonBase

copy: Annotated[str, 'copy']
class InlineKeyboardButtonGame(callback_game: Annotated[dict[str, Any], 'callbackGame'], text: Annotated[str, 'text'])[source]

Bases: _InlineKeyboardButtonBase

callback_game: Annotated[dict[str, Any], 'callbackGame']
class InlineKeyboardButtonLogin(login_url: Annotated[LoginUrl, 'loginUrl'], text: Annotated[str, 'text'])[source]

Bases: _InlineKeyboardButtonBase

login_url: Annotated[LoginUrl, 'loginUrl']
class InlineKeyboardButtonMiniApp(mini_app: Annotated[MiniAppInfo, 'miniApp'], text: Annotated[str, 'text'])[source]

Bases: _InlineKeyboardButtonBase

mini_app: Annotated[MiniAppInfo, 'miniApp']
class InlineKeyboardButtonPay(pay: Annotated[bool, 'pay'], text: Annotated[str, 'text'])[source]

Bases: _InlineKeyboardButtonBase

pay: Annotated[bool, 'pay']
class InlineKeyboardButtonSwitchInline(switch_inline_query: Annotated[str, 'switchInlineQuery'], text: Annotated[str, 'text'])[source]

Bases: _InlineKeyboardButtonBase

switch_inline_query: Annotated[str, 'switchInlineQuery']
class InlineKeyboardButtonSwitchInlineChosen(switch_inline_query_chosen_chats: Annotated[Any, 'switchInlineQueryChosenChats'], text: Annotated[str, 'text'])[source]

Bases: _InlineKeyboardButtonBase

switch_inline_query_chosen_chats: Annotated[Any, 'switchInlineQueryChosenChats']
class InlineKeyboardButtonSwitchInlineCurrent(switch_inline_query_current_chat: Annotated[str, 'switchInlineQueryCurrentChat'], text: Annotated[str, 'text'])[source]

Bases: _InlineKeyboardButtonBase

switch_inline_query_current_chat: Annotated[str, 'switchInlineQueryCurrentChat']
class InlineKeyboardButtonURL(url: Annotated[str, 'url'], text: Annotated[str, 'text'])[source]

Bases: _InlineKeyboardButtonBase

url: Annotated[str, 'url']
class InlineQuery(id: Annotated[str, 'id'], from_: Annotated[User, 'from'], query: Annotated[str, 'query'], offset: Annotated[str, 'offset'], *, chat_type: Annotated[Any | None, 'chatType'] = None, location: Annotated[Location | None, 'location'] = None)[source]

Bases: _Type

async answer(results: List[InlineQueryResultCachedAudio | InlineQueryResultCachedDocument | InlineQueryResultCachedGif | InlineQueryResultCachedMpeg4Gif | InlineQueryResultCachedPhoto | InlineQueryResultCachedSticker | InlineQueryResultCachedVideo | InlineQueryResultCachedVoice | InlineQueryResultArticle | InlineQueryResultAudio | InlineQueryResultContact | InlineQueryResultGame | InlineQueryResultDocument | InlineQueryResultGif | InlineQueryResultLocation | InlineQueryResultMpeg4Gif | InlineQueryResultPhoto | InlineQueryResultVenue | InlineQueryResultVideo | InlineQueryResultVoice], *, cache_time: int | None = None, is_personal: bool | None = None, next_offset: str | None = None, is_gallery: bool | None = None, button: InlineQueryResultButton | None = None) None[source]
chat_type: Annotated[Any | None, 'chatType']
from_: Annotated[User, 'from']
id: Annotated[str, 'id']
location: Annotated[Location | None, 'location']
offset: Annotated[str, 'offset']
query: Annotated[str, 'query']
class InlineQueryAnswer(id: Annotated[str, 'id'], results: Annotated[list[InlineQueryResultCachedAudio | InlineQueryResultCachedDocument | InlineQueryResultCachedGif | InlineQueryResultCachedMpeg4Gif | InlineQueryResultCachedPhoto | InlineQueryResultCachedSticker | InlineQueryResultCachedVideo | InlineQueryResultCachedVoice | InlineQueryResultArticle | InlineQueryResultAudio | InlineQueryResultContact | InlineQueryResultGame | InlineQueryResultDocument | InlineQueryResultGif | InlineQueryResultLocation | InlineQueryResultMpeg4Gif | InlineQueryResultPhoto | InlineQueryResultVenue | InlineQueryResultVideo | InlineQueryResultVoice], 'results'], *, next_offset: Annotated[str | None, 'nextOffset'] = None)[source]

Bases: _Type

id: Annotated[str, 'id']
next_offset: Annotated[str | None, 'nextOffset']
results: Annotated[list[InlineQueryResultCachedAudio | InlineQueryResultCachedDocument | InlineQueryResultCachedGif | InlineQueryResultCachedMpeg4Gif | InlineQueryResultCachedPhoto | InlineQueryResultCachedSticker | InlineQueryResultCachedVideo | InlineQueryResultCachedVoice | InlineQueryResultArticle | InlineQueryResultAudio | InlineQueryResultContact | InlineQueryResultGame | InlineQueryResultDocument | InlineQueryResultGif | InlineQueryResultLocation | InlineQueryResultMpeg4Gif | InlineQueryResultPhoto | InlineQueryResultVenue | InlineQueryResultVideo | InlineQueryResultVoice], 'results']
class InlineQueryResultArticle(type: Annotated[Literal['article'], 'type'], title: Annotated[str, 'title'], message_content: Annotated[MessageContentText | MessageContentLocation | MessageContentVenue | MessageContentContact | MessageContentInvoice, 'messageContent'], id: Annotated[str, 'id'], *, description: Annotated[str | None, 'description'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | None, 'replyMarkup'] = None, url: Annotated[str | None, 'url'] = None, hide_url: Annotated[bool | None, 'hideUrl'] = None, thumbnail_url: Annotated[str | None, 'thumbnailUrl'] = None, thumbnail_width: Annotated[str | None, 'thumbnailWidth'] = None, thumbnail_height: Annotated[str | None, 'thumbnailHeight'] = None)[source]

Bases: _InlineQueryResultBase, _InlineQueryResultThumbnailCommon

description: Annotated[str | None, 'description']
hide_url: Annotated[bool | None, 'hideUrl']
message_content: Annotated[MessageContentText | MessageContentLocation | MessageContentVenue | MessageContentContact | MessageContentInvoice, 'messageContent']
reply_markup: Annotated[ReplyMarkupInlineKeyboard | None, 'replyMarkup']
title: Annotated[str, 'title']
type: Annotated[Literal['article'], 'type']
url: Annotated[str | None, 'url']
class InlineQueryResultAudio(type: Annotated[Literal['audio'], 'type'], title: Annotated[str, 'title'], url: Annotated[str, 'url'], id: Annotated[str, 'id'], *, performer: Annotated[str | None, 'performer'] = None, audio_duration: Annotated[int | None, 'audioDuration'] = None, caption: Annotated[str | None, 'caption'] = None, parse_mode: Annotated[Literal['HTML'] | Literal['Markdown'] | None, 'parseMode'] = None, caption_entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None, 'captionEntities'] = None, message_content: Annotated[MessageContentText | MessageContentLocation | MessageContentVenue | MessageContentContact | MessageContentInvoice | None, 'messageContent'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | None, 'replyMarkup'] = None)[source]

Bases: _InlineQueryResultBase, _InlineQueryResultCaptionCommon, _InlineQueryResultMessageContentReplyMarkupCommon

audio_duration: Annotated[int | None, 'audioDuration']
performer: Annotated[str | None, 'performer']
title: Annotated[str, 'title']
type: Annotated[Literal['audio'], 'type']
url: Annotated[str, 'url']
class InlineQueryResultButton(text: Annotated[str, 'text'], *, mini_app: Annotated[MiniAppInfo | None, 'miniApp'] = None, start_parameter: Annotated[str | None, 'startParameter'] = None)[source]

Bases: _Type

mini_app: Annotated[MiniAppInfo | None, 'miniApp']
start_parameter: Annotated[str | None, 'startParameter']
text: Annotated[str, 'text']
class InlineQueryResultCachedAudio(type: Annotated[Literal['audio'], 'type'], file_id: Annotated[str, 'fileId'], id: Annotated[str, 'id'], *, caption: Annotated[str | None, 'caption'] = None, parse_mode: Annotated[Literal['HTML'] | Literal['Markdown'] | None, 'parseMode'] = None, caption_entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None, 'captionEntities'] = None, message_content: Annotated[MessageContentText | MessageContentLocation | MessageContentVenue | MessageContentContact | MessageContentInvoice | None, 'messageContent'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | None, 'replyMarkup'] = None)[source]

Bases: _InlineQueryResultBase, _InlineQueryResultCaptionCommon, _InlineQueryResultMessageContentReplyMarkupCommon

file_id: Annotated[str, 'fileId']
type: Annotated[Literal['audio'], 'type']
class InlineQueryResultCachedDocument(type: Annotated[Literal['document'], 'type'], file_id: Annotated[str, 'fileId'], id: Annotated[str, 'id'], *, description: Annotated[str | None, 'description'] = None, caption: Annotated[str | None, 'caption'] = None, parse_mode: Annotated[Literal['HTML'] | Literal['Markdown'] | None, 'parseMode'] = None, caption_entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None, 'captionEntities'] = None, message_content: Annotated[MessageContentText | MessageContentLocation | MessageContentVenue | MessageContentContact | MessageContentInvoice | None, 'messageContent'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | None, 'replyMarkup'] = None)[source]

Bases: _InlineQueryResultBase, _InlineQueryResultCaptionCommon, _InlineQueryResultMessageContentReplyMarkupCommon

description: Annotated[str | None, 'description']
file_id: Annotated[str, 'fileId']
type: Annotated[Literal['document'], 'type']
class InlineQueryResultCachedGif(type: Annotated[Literal['gif'], 'type'], file_id: Annotated[str, 'fileId'], id: Annotated[str, 'id'], *, title: Annotated[str | None, 'title'] = None, caption: Annotated[str | None, 'caption'] = None, parse_mode: Annotated[Literal['HTML'] | Literal['Markdown'] | None, 'parseMode'] = None, caption_entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None, 'captionEntities'] = None, message_content: Annotated[MessageContentText | MessageContentLocation | MessageContentVenue | MessageContentContact | MessageContentInvoice | None, 'messageContent'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | None, 'replyMarkup'] = None)[source]

Bases: _InlineQueryResultBase, _InlineQueryResultCaptionCommon, _InlineQueryResultMessageContentReplyMarkupCommon

file_id: Annotated[str, 'fileId']
title: Annotated[str | None, 'title']
type: Annotated[Literal['gif'], 'type']
class InlineQueryResultCachedMpeg4Gif(type: Annotated[Literal['mpeg4Gif'], 'type'], file_id: Annotated[str, 'fileId'], id: Annotated[str, 'id'], *, title: Annotated[str | None, 'title'] = None, caption: Annotated[str | None, 'caption'] = None, parse_mode: Annotated[Literal['HTML'] | Literal['Markdown'] | None, 'parseMode'] = None, caption_entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None, 'captionEntities'] = None, message_content: Annotated[MessageContentText | MessageContentLocation | MessageContentVenue | MessageContentContact | MessageContentInvoice | None, 'messageContent'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | None, 'replyMarkup'] = None)[source]

Bases: _InlineQueryResultBase, _InlineQueryResultCaptionCommon, _InlineQueryResultMessageContentReplyMarkupCommon

file_id: Annotated[str, 'fileId']
title: Annotated[str | None, 'title']
type: Annotated[Literal['mpeg4Gif'], 'type']
class InlineQueryResultCachedPhoto(type: Annotated[Literal['photo'], 'type'], file_id: Annotated[str, 'fileId'], id: Annotated[str, 'id'], *, thumbnails: Annotated[list[Thumbnail] | None, 'thumbnails'] = None, title: Annotated[str | None, 'title'] = None, description: Annotated[str | None, 'description'] = None, caption: Annotated[str | None, 'caption'] = None, parse_mode: Annotated[Literal['HTML'] | Literal['Markdown'] | None, 'parseMode'] = None, caption_entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None, 'captionEntities'] = None, message_content: Annotated[MessageContentText | MessageContentLocation | MessageContentVenue | MessageContentContact | MessageContentInvoice | None, 'messageContent'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | None, 'replyMarkup'] = None)[source]

Bases: _InlineQueryResultBase, _InlineQueryResultCaptionCommon, _InlineQueryResultMessageContentReplyMarkupCommon

description: Annotated[str | None, 'description']
file_id: Annotated[str, 'fileId']
thumbnails: Annotated[list[Thumbnail] | None, 'thumbnails']
title: Annotated[str | None, 'title']
type: Annotated[Literal['photo'], 'type']
class InlineQueryResultCachedSticker(type: Annotated[Literal['sticker'], 'type'], file_id: Annotated[str, 'fileId'], id: Annotated[str, 'id'], *, message_content: Annotated[MessageContentText | MessageContentLocation | MessageContentVenue | MessageContentContact | MessageContentInvoice | None, 'messageContent'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | None, 'replyMarkup'] = None)[source]

Bases: _InlineQueryResultBase, _InlineQueryResultMessageContentReplyMarkupCommon

file_id: Annotated[str, 'fileId']
type: Annotated[Literal['sticker'], 'type']
class InlineQueryResultCachedVideo(type: Annotated[Literal['video'], 'type'], title: Annotated[str, 'title'], file_id: Annotated[str, 'fileId'], id: Annotated[str, 'id'], *, description: Annotated[str | None, 'description'] = None, caption: Annotated[str | None, 'caption'] = None, parse_mode: Annotated[Literal['HTML'] | Literal['Markdown'] | None, 'parseMode'] = None, caption_entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None, 'captionEntities'] = None, message_content: Annotated[MessageContentText | MessageContentLocation | MessageContentVenue | MessageContentContact | MessageContentInvoice | None, 'messageContent'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | None, 'replyMarkup'] = None)[source]

Bases: _InlineQueryResultBase, _InlineQueryResultCaptionCommon, _InlineQueryResultMessageContentReplyMarkupCommon

description: Annotated[str | None, 'description']
file_id: Annotated[str, 'fileId']
title: Annotated[str, 'title']
type: Annotated[Literal['video'], 'type']
class InlineQueryResultCachedVoice(type: Annotated[Literal['voice'], 'type'], title: Annotated[str, 'title'], file_id: Annotated[str, 'fileId'], id: Annotated[str, 'id'], *, caption: Annotated[str | None, 'caption'] = None, parse_mode: Annotated[Literal['HTML'] | Literal['Markdown'] | None, 'parseMode'] = None, caption_entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None, 'captionEntities'] = None, message_content: Annotated[MessageContentText | MessageContentLocation | MessageContentVenue | MessageContentContact | MessageContentInvoice | None, 'messageContent'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | None, 'replyMarkup'] = None)[source]

Bases: _InlineQueryResultBase, _InlineQueryResultCaptionCommon, _InlineQueryResultMessageContentReplyMarkupCommon

file_id: Annotated[str, 'fileId']
title: Annotated[str, 'title']
type: Annotated[Literal['voice'], 'type']
class InlineQueryResultContact(type: Annotated[Literal['game'], 'type'], phone_number: Annotated[str, 'phoneNumber'], first_name: Annotated[str, 'firstName'], id: Annotated[str, 'id'], *, last_name: Annotated[str | None, 'lastName'] = None, vcard: Annotated[str | None, 'vcard'] = None, caption: Annotated[str | None, 'caption'] = None, parse_mode: Annotated[Literal['HTML'] | Literal['Markdown'] | None, 'parseMode'] = None, caption_entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None, 'captionEntities'] = None, message_content: Annotated[MessageContentText | MessageContentLocation | MessageContentVenue | MessageContentContact | MessageContentInvoice | None, 'messageContent'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | None, 'replyMarkup'] = None, thumbnail_url: Annotated[str | None, 'thumbnailUrl'] = None, thumbnail_width: Annotated[str | None, 'thumbnailWidth'] = None, thumbnail_height: Annotated[str | None, 'thumbnailHeight'] = None)[source]

Bases: _InlineQueryResultBase, _InlineQueryResultCaptionCommon, _InlineQueryResultMessageContentReplyMarkupCommon, _InlineQueryResultThumbnailCommon

first_name: Annotated[str, 'firstName']
last_name: Annotated[str | None, 'lastName']
phone_number: Annotated[str, 'phoneNumber']
type: Annotated[Literal['game'], 'type']
vcard: Annotated[str | None, 'vcard']
class InlineQueryResultDocument(type: Annotated[Literal['document'], 'type'], title: Annotated[str, 'title'], url: Annotated[str, 'url'], id: Annotated[str, 'id'], *, caption: Annotated[str | None, 'caption'] = None, parse_mode: Annotated[Literal['HTML'] | Literal['Markdown'] | None, 'parseMode'] = None, caption_entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None, 'captionEntities'] = None, message_content: Annotated[MessageContentText | MessageContentLocation | MessageContentVenue | MessageContentContact | MessageContentInvoice | None, 'messageContent'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | None, 'replyMarkup'] = None, thumbnail_url: Annotated[str | None, 'thumbnailUrl'] = None, thumbnail_width: Annotated[str | None, 'thumbnailWidth'] = None, thumbnail_height: Annotated[str | None, 'thumbnailHeight'] = None)[source]

Bases: _InlineQueryResultBase, _InlineQueryResultCaptionCommon, _InlineQueryResultMessageContentReplyMarkupCommon, _InlineQueryResultThumbnailCommon

title: Annotated[str, 'title']
type: Annotated[Literal['document'], 'type']
url: Annotated[str, 'url']
class InlineQueryResultGame(type: Annotated[Literal['game'], 'type'], game_short_name: Annotated[str, 'gameShortName'], id: Annotated[str, 'id'], *, reply_markup: Annotated[ReplyMarkupInlineKeyboard | None, 'replyMarkup'] = None)[source]

Bases: _InlineQueryResultBase

game_short_name: Annotated[str, 'gameShortName']
reply_markup: Annotated[ReplyMarkupInlineKeyboard | None, 'replyMarkup']
type: Annotated[Literal['game'], 'type']
class InlineQueryResultGif(type: Annotated[Literal['gif'], 'type'], url: Annotated[str, 'url'], id: Annotated[str, 'id'], *, title: Annotated[str | None, 'title'] = None, width: Annotated[int | None, 'width'] = None, height: Annotated[int | None, 'height'] = None, duration: Annotated[int | None, 'duration'] = None, thumbnail_url: Annotated[str | None, 'thumbnailUrl'] = None, thumbnail_mime_type: Annotated[str | None, 'thumbnailMimeType'] = None, caption: Annotated[str | None, 'caption'] = None, parse_mode: Annotated[Literal['HTML'] | Literal['Markdown'] | None, 'parseMode'] = None, caption_entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None, 'captionEntities'] = None, message_content: Annotated[MessageContentText | MessageContentLocation | MessageContentVenue | MessageContentContact | MessageContentInvoice | None, 'messageContent'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | None, 'replyMarkup'] = None)[source]

Bases: _InlineQueryResultBase, _InlineQueryResultCaptionCommon, _InlineQueryResultMessageContentReplyMarkupCommon

duration: Annotated[int | None, 'duration']
height: Annotated[int | None, 'height']
thumbnail_mime_type: Annotated[str | None, 'thumbnailMimeType']
thumbnail_url: Annotated[str | None, 'thumbnailUrl']
title: Annotated[str | None, 'title']
type: Annotated[Literal['gif'], 'type']
url: Annotated[str, 'url']
width: Annotated[int | None, 'width']
class InlineQueryResultLocation(type: Annotated[Literal['location'], 'type'], title: Annotated[str, 'title'], latitude: Annotated[int, 'latitude'], longitude: Annotated[int, 'longitude'], id: Annotated[str, 'id'], *, horizontal_accuracy: Annotated[int | None, 'horizontalAccuracy'] = None, live_period: Annotated[int | None, 'livePeriod'] = None, heading: Annotated[int | None, 'heading'] = None, proximity_alert_radius: Annotated[int | None, 'proximityAlertRadius'] = None, message_content: Annotated[MessageContentText | MessageContentLocation | MessageContentVenue | MessageContentContact | MessageContentInvoice | None, 'messageContent'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | None, 'replyMarkup'] = None, thumbnail_url: Annotated[str | None, 'thumbnailUrl'] = None, thumbnail_width: Annotated[str | None, 'thumbnailWidth'] = None, thumbnail_height: Annotated[str | None, 'thumbnailHeight'] = None)[source]

Bases: _InlineQueryResultBase, _InlineQueryResultMessageContentReplyMarkupCommon, _InlineQueryResultThumbnailCommon

heading: Annotated[int | None, 'heading']
horizontal_accuracy: Annotated[int | None, 'horizontalAccuracy']
latitude: Annotated[int, 'latitude']
live_period: Annotated[int | None, 'livePeriod']
longitude: Annotated[int, 'longitude']
proximity_alert_radius: Annotated[int | None, 'proximityAlertRadius']
title: Annotated[str, 'title']
type: Annotated[Literal['location'], 'type']
class InlineQueryResultMpeg4Gif(type: Annotated[Literal['mpeg4Gif'], 'type'], url: Annotated[str, 'url'], id: Annotated[str, 'id'], *, title: Annotated[str | None, 'title'] = None, width: Annotated[int | None, 'width'] = None, height: Annotated[int | None, 'height'] = None, duration: Annotated[int | None, 'duration'] = None, thumbnail_url: Annotated[str | None, 'thumbnailUrl'] = None, thumbnail_mime_type: Annotated[str | None, 'thumbnailMimeType'] = None, caption: Annotated[str | None, 'caption'] = None, parse_mode: Annotated[Literal['HTML'] | Literal['Markdown'] | None, 'parseMode'] = None, caption_entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None, 'captionEntities'] = None, message_content: Annotated[MessageContentText | MessageContentLocation | MessageContentVenue | MessageContentContact | MessageContentInvoice | None, 'messageContent'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | None, 'replyMarkup'] = None)[source]

Bases: _InlineQueryResultBase, _InlineQueryResultCaptionCommon, _InlineQueryResultMessageContentReplyMarkupCommon

duration: Annotated[int | None, 'duration']
height: Annotated[int | None, 'height']
thumbnail_mime_type: Annotated[str | None, 'thumbnailMimeType']
thumbnail_url: Annotated[str | None, 'thumbnailUrl']
title: Annotated[str | None, 'title']
type: Annotated[Literal['mpeg4Gif'], 'type']
url: Annotated[str, 'url']
width: Annotated[int | None, 'width']
class InlineQueryResultPhoto(type: Annotated[Literal['photo'], 'type'], url: Annotated[str, 'url'], thumbnail_url: Annotated[str, 'thumbnailUrl'], id: Annotated[str, 'id'], *, title: Annotated[str | None, 'title'] = None, description: Annotated[str | None, 'description'] = None, width: Annotated[int | None, 'width'] = None, height: Annotated[int | None, 'height'] = None, caption: Annotated[str | None, 'caption'] = None, parse_mode: Annotated[Literal['HTML'] | Literal['Markdown'] | None, 'parseMode'] = None, caption_entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None, 'captionEntities'] = None, message_content: Annotated[MessageContentText | MessageContentLocation | MessageContentVenue | MessageContentContact | MessageContentInvoice | None, 'messageContent'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | None, 'replyMarkup'] = None)[source]

Bases: _InlineQueryResultBase, _InlineQueryResultCaptionCommon, _InlineQueryResultMessageContentReplyMarkupCommon

description: Annotated[str | None, 'description']
height: Annotated[int | None, 'height']
thumbnail_url: Annotated[str, 'thumbnailUrl']
title: Annotated[str | None, 'title']
type: Annotated[Literal['photo'], 'type']
url: Annotated[str, 'url']
width: Annotated[int | None, 'width']
class InlineQueryResultVenue(type: Annotated[Literal['venue'], 'type'], title: Annotated[str, 'title'], latitude: Annotated[int, 'latitude'], longitude: Annotated[int, 'longitude'], address: Annotated[str, 'address'], id: Annotated[str, 'id'], *, foursquare_id: Annotated[str | None, 'foursquareId'] = None, foursquare_type: Annotated[str | None, 'foursquareType'] = None, message_content: Annotated[MessageContentText | MessageContentLocation | MessageContentVenue | MessageContentContact | MessageContentInvoice | None, 'messageContent'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | None, 'replyMarkup'] = None, thumbnail_url: Annotated[str | None, 'thumbnailUrl'] = None, thumbnail_width: Annotated[str | None, 'thumbnailWidth'] = None, thumbnail_height: Annotated[str | None, 'thumbnailHeight'] = None)[source]

Bases: _InlineQueryResultBase, _InlineQueryResultMessageContentReplyMarkupCommon, _InlineQueryResultThumbnailCommon

address: Annotated[str, 'address']
foursquare_id: Annotated[str | None, 'foursquareId']
foursquare_type: Annotated[str | None, 'foursquareType']
latitude: Annotated[int, 'latitude']
longitude: Annotated[int, 'longitude']
title: Annotated[str, 'title']
type: Annotated[Literal['venue'], 'type']
class InlineQueryResultVideo(type: Annotated[Literal['video'], 'type'], title: Annotated[str, 'title'], url: Annotated[str, 'url'], mime_type: Annotated[str, 'mimeType'], thumbnail_url: Annotated[str, 'thumbnailUrl'], id: Annotated[str, 'id'], *, description: Annotated[str | None, 'description'] = None, width: Annotated[int | None, 'width'] = None, height: Annotated[int | None, 'height'] = None, video_duration: Annotated[int | None, 'videoDuration'] = None, caption: Annotated[str | None, 'caption'] = None, parse_mode: Annotated[Literal['HTML'] | Literal['Markdown'] | None, 'parseMode'] = None, caption_entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None, 'captionEntities'] = None, message_content: Annotated[MessageContentText | MessageContentLocation | MessageContentVenue | MessageContentContact | MessageContentInvoice | None, 'messageContent'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | None, 'replyMarkup'] = None)[source]

Bases: _InlineQueryResultBase, _InlineQueryResultCaptionCommon, _InlineQueryResultMessageContentReplyMarkupCommon

description: Annotated[str | None, 'description']
height: Annotated[int | None, 'height']
mime_type: Annotated[str, 'mimeType']
thumbnail_url: Annotated[str, 'thumbnailUrl']
title: Annotated[str, 'title']
type: Annotated[Literal['video'], 'type']
url: Annotated[str, 'url']
video_duration: Annotated[int | None, 'videoDuration']
width: Annotated[int | None, 'width']
class InlineQueryResultVoice(type: Annotated[Literal['voice'], 'type'], title: Annotated[str, 'title'], url: Annotated[str, 'url'], id: Annotated[str, 'id'], *, voice_duration: Annotated[int | None, 'voiceDuration'] = None, caption: Annotated[str | None, 'caption'] = None, parse_mode: Annotated[Literal['HTML'] | Literal['Markdown'] | None, 'parseMode'] = None, caption_entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None, 'captionEntities'] = None, message_content: Annotated[MessageContentText | MessageContentLocation | MessageContentVenue | MessageContentContact | MessageContentInvoice | None, 'messageContent'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | None, 'replyMarkup'] = None)[source]

Bases: _InlineQueryResultBase, _InlineQueryResultCaptionCommon, _InlineQueryResultMessageContentReplyMarkupCommon

title: Annotated[str, 'title']
type: Annotated[Literal['voice'], 'type']
url: Annotated[str, 'url']
voice_duration: Annotated[int | None, 'voiceDuration']
class InputMediaAnimation(animation: Annotated[str | bytes, 'animation'], *, thumbnail: Annotated[str | bytes | None, 'thumbnail'] = None, duration: Annotated[int | None, 'duration'] = None, width: Annotated[int | None, 'width'] = None, height: Annotated[int | None, 'height'] = None, has_spoiler: Annotated[bool | None, 'hasSpoiler'] = None, file_name: Annotated[str | None, 'fileName'] = None, mime_type: Annotated[str | None, 'mimeType'] = None, chunk_size: Annotated[int | None, 'chunkSize'] = None, caption: Annotated[str | None, 'caption'] = None, caption_entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None, 'captionEntities'] = None, parse_mode: Annotated[Literal['HTML'] | Literal['Markdown'] | None, 'parseMode'] = None)[source]

Bases: _InputMediaCommon

animation: Annotated[str | bytes, 'animation']
duration: Annotated[int | None, 'duration']
has_spoiler: Annotated[bool | None, 'hasSpoiler']
height: Annotated[int | None, 'height']
thumbnail: Annotated[str | bytes | None, 'thumbnail']
width: Annotated[int | None, 'width']
class InputMediaAudio(audio: Annotated[str | bytes, 'audio'], *, thumbnail: Annotated[str | bytes | None, 'thumbnail'] = None, duration: Annotated[int | None, 'duration'] = None, performer: Annotated[str | None, 'performer'] = None, title: Annotated[str | None, 'title'] = None, file_name: Annotated[str | None, 'fileName'] = None, mime_type: Annotated[str | None, 'mimeType'] = None, chunk_size: Annotated[int | None, 'chunkSize'] = None, caption: Annotated[str | None, 'caption'] = None, caption_entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None, 'captionEntities'] = None, parse_mode: Annotated[Literal['HTML'] | Literal['Markdown'] | None, 'parseMode'] = None)[source]

Bases: _InputMediaCommon

audio: Annotated[str | bytes, 'audio']
duration: Annotated[int | None, 'duration']
performer: Annotated[str | None, 'performer']
thumbnail: Annotated[str | bytes | None, 'thumbnail']
title: Annotated[str | None, 'title']
class InputMediaDocument(document: Annotated[str | bytes, 'document'], *, thumbnail: Annotated[str | bytes | None, 'thumbnail'] = None, file_name: Annotated[str | None, 'fileName'] = None, mime_type: Annotated[str | None, 'mimeType'] = None, chunk_size: Annotated[int | None, 'chunkSize'] = None, caption: Annotated[str | None, 'caption'] = None, caption_entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None, 'captionEntities'] = None, parse_mode: Annotated[Literal['HTML'] | Literal['Markdown'] | None, 'parseMode'] = None)[source]

Bases: _InputMediaCommon

document: Annotated[str | bytes, 'document']
thumbnail: Annotated[str | bytes | None, 'thumbnail']
class InputMediaPhoto(photo: Annotated[str | bytes, 'photo'], *, width: Annotated[int | None, 'width'] = None, height: Annotated[int | None, 'height'] = None, has_spoiler: Annotated[bool | None, 'hasSpoiler'] = None, self_destruct: Annotated[Literal['afterOpen'] | int | None, 'selfDestruct'] = None, file_name: Annotated[str | None, 'fileName'] = None, mime_type: Annotated[str | None, 'mimeType'] = None, chunk_size: Annotated[int | None, 'chunkSize'] = None, caption: Annotated[str | None, 'caption'] = None, caption_entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None, 'captionEntities'] = None, parse_mode: Annotated[Literal['HTML'] | Literal['Markdown'] | None, 'parseMode'] = None)[source]

Bases: _InputMediaCommon

has_spoiler: Annotated[bool | None, 'hasSpoiler']
height: Annotated[int | None, 'height']
photo: Annotated[str | bytes, 'photo']
self_destruct: Annotated[Literal['afterOpen'] | int | None, 'selfDestruct']
width: Annotated[int | None, 'width']
class InputMediaVideo(video: Annotated[str | bytes, 'video'], *, thumbnail: Annotated[str | bytes | None, 'thumbnail'] = None, duration: Annotated[int | None, 'duration'] = None, width: Annotated[int | None, 'width'] = None, height: Annotated[int | None, 'height'] = None, supports_streaming: Annotated[bool | None, 'supportsStreaming'] = None, has_spoiler: Annotated[bool | None, 'hasSpoiler'] = None, self_destruct: Annotated[Literal['afterOpen'] | int | None, 'selfDestruct'] = None, file_name: Annotated[str | None, 'fileName'] = None, mime_type: Annotated[str | None, 'mimeType'] = None, chunk_size: Annotated[int | None, 'chunkSize'] = None, caption: Annotated[str | None, 'caption'] = None, caption_entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None, 'captionEntities'] = None, parse_mode: Annotated[Literal['HTML'] | Literal['Markdown'] | None, 'parseMode'] = None)[source]

Bases: _InputMediaCommon

duration: Annotated[int | None, 'duration']
has_spoiler: Annotated[bool | None, 'hasSpoiler']
height: Annotated[int | None, 'height']
self_destruct: Annotated[Literal['afterOpen'] | int | None, 'selfDestruct']
supports_streaming: Annotated[bool | None, 'supportsStreaming']
thumbnail: Annotated[str | bytes | None, 'thumbnail']
video: Annotated[str | bytes, 'video']
width: Annotated[int | None, 'width']
class InputStoryContentPhoto(photo: Annotated[str | bytes, 'photo'], *, attached_sticker_file_ids: Annotated[list[str] | None, 'attachedStickerFileIds'] = None)[source]

Bases: _Type

attached_sticker_file_ids: Annotated[list[str] | None, 'attachedStickerFileIds']
photo: Annotated[str | bytes, 'photo']
class InputStoryContentVideo(video: Annotated[str | bytes, 'video'], duration: Annotated[int, 'duration'], *, attached_sticker_file_ids: Annotated[list[str] | None, 'attachedStickerFileIds'] = None, animation: Annotated[bool | None, 'animation'] = None)[source]

Bases: _Type

animation: Annotated[bool | None, 'animation']
attached_sticker_file_ids: Annotated[list[str] | None, 'attachedStickerFileIds']
duration: Annotated[int, 'duration']
video: Annotated[str | bytes, 'video']

Bases: _Type

creator: Annotated[User, 'creator']
expires_at: Annotated[datetime | None, 'expiresAt']
limit: Annotated[int | None, 'limit']
pending_join_request_count: Annotated[int | None, 'pendingJoinRequestCount']
requires_approval: Annotated[bool, 'requiresApproval']
revoked: Annotated[bool, 'revoked']
subscription_expires_in: Annotated[int | None, 'subscriptionExpiresIn']
subscription_price: Annotated[int | None, 'subscriptionPrice']
title: Annotated[str | None, 'title']
class Invoice(title: Annotated[str, 'title'], description: Annotated[str, 'description'], start_parameter: Annotated[str, 'startParameter'], currency: Annotated[str, 'currency'], total_amount: Annotated[int, 'totalAmount'])[source]

Bases: _Type

currency: Annotated[str, 'currency']
description: Annotated[str, 'description']
start_parameter: Annotated[str, 'startParameter']
title: Annotated[str, 'title']
total_amount: Annotated[int, 'totalAmount']
class JoinRequest(chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], user: Annotated[User, 'user'], date: Annotated[datetime, 'date'], *, bio: Annotated[str | None, 'bio'] = None, invite_link: Annotated[InviteLink | None, 'inviteLink'] = None)[source]

Bases: _Type

bio: Annotated[str | None, 'bio']
chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat']
date: Annotated[datetime, 'date']
user: Annotated[User, 'user']
class KeyboardButtonMiniApp(mini_app: Annotated[MiniAppInfo, 'miniApp'], text: Annotated[str, 'text'])[source]

Bases: KeyboardButtonText

mini_app: Annotated[MiniAppInfo, 'miniApp']
class KeyboardButtonPollType(*, type: Annotated[Any | None, 'type'] = None)[source]

Bases: _Type

type: Annotated[Any | None, 'type']
class KeyboardButtonRequestChat(request_chat: Annotated[Any, 'requestChat'], text: Annotated[str, 'text'])[source]

Bases: KeyboardButtonText

request_chat: Annotated[Any, 'requestChat']
class KeyboardButtonRequestContact(request_contact: Annotated[Literal[True], 'requestContact'], text: Annotated[str, 'text'])[source]

Bases: KeyboardButtonText

request_contact: Annotated[Literal[True], 'requestContact']
class KeyboardButtonRequestLocation(request_location: Annotated[Literal[True], 'requestLocation'], text: Annotated[str, 'text'])[source]

Bases: KeyboardButtonText

request_location: Annotated[Literal[True], 'requestLocation']
class KeyboardButtonRequestPoll(request_poll: Annotated[KeyboardButtonPollType, 'requestPoll'], text: Annotated[str, 'text'])[source]

Bases: KeyboardButtonText

request_poll: Annotated[KeyboardButtonPollType, 'requestPoll']
class KeyboardButtonRequestUser(request_user: Annotated[Any, 'requestUser'], text: Annotated[str, 'text'])[source]

Bases: KeyboardButtonText

request_user: Annotated[Any, 'requestUser']
class KeyboardButtonText(text: Annotated[str, 'text'])[source]

Bases: _Type

text: Annotated[str, 'text']
class LinkPreview(*, disable: Annotated[bool | None, 'disable'] = None, url: Annotated[str | None, 'url'] = None, small_media: Annotated[bool | None, 'smallMedia'] = None, large_media: Annotated[bool | None, 'largeMedia'] = None, above_text: Annotated[bool | None, 'aboveText'] = None)[source]

Bases: _Type

above_text: Annotated[bool | None, 'aboveText']
disable: Annotated[bool | None, 'disable']
large_media: Annotated[bool | None, 'largeMedia']
small_media: Annotated[bool | None, 'smallMedia']
url: Annotated[str | None, 'url']
class LiveStreamChannel(id: Annotated[int, 'id'], scale: Annotated[int, 'scale'], timestamp: Annotated[int, 'timestamp'])[source]

Bases: _Type

id: Annotated[int, 'id']
scale: Annotated[int, 'scale']
timestamp: Annotated[int, 'timestamp']
class Location(latitude: Annotated[int, 'latitude'], longitude: Annotated[int, 'longitude'], *, horizontal_accuracy: Annotated[int | None, 'horizontalAccuracy'] = None, live_period: Annotated[int | None, 'livePeriod'] = None, heading: Annotated[int | None, 'heading'] = None, proximity_alert_radius: Annotated[int | None, 'proximityAlertRadius'] = None)[source]

Bases: _Type

heading: Annotated[int | None, 'heading']
horizontal_accuracy: Annotated[int | None, 'horizontalAccuracy']
latitude: Annotated[int, 'latitude']
live_period: Annotated[int | None, 'livePeriod']
longitude: Annotated[int, 'longitude']
proximity_alert_radius: Annotated[int | None, 'proximityAlertRadius']
class LoginUrl(url: Annotated[str, 'url'], *, forward_text: Annotated[str | None, 'forwardText'] = None, bot_username: Annotated[str | None, 'botUsername'] = None, request_write_access: Annotated[bool | None, 'requestWriteAccess'] = None)[source]

Bases: _Type

bot_username: Annotated[str | None, 'botUsername']
forward_text: Annotated[str | None, 'forwardText']
request_write_access: Annotated[bool | None, 'requestWriteAccess']
url: Annotated[str, 'url']
class MaskPosition(point: Annotated[Any, 'point'], x_shift: Annotated[int, 'xShift'], y_shift: Annotated[int, 'yShift'], scale: Annotated[int, 'scale'])[source]

Bases: _Type

point: Annotated[Any, 'point']
scale: Annotated[int, 'scale']
x_shift: Annotated[int, 'xShift']
y_shift: Annotated[int, 'yShift']
class MessageAnimation(animation: Annotated[Animation, 'animation'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, caption: Annotated[str | None, 'caption'] = None, caption_entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None, 'captionEntities'] = None, has_media_spoiler: Annotated[bool | None, 'hasMediaSpoiler'] = None, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageMediaBase

animation: Annotated[Animation, 'animation']
class MessageAudio(audio: Annotated[Audio, 'audio'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, caption: Annotated[str | None, 'caption'] = None, caption_entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None, 'captionEntities'] = None, has_media_spoiler: Annotated[bool | None, 'hasMediaSpoiler'] = None, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageMediaBase

audio: Annotated[Audio, 'audio']
class MessageAutoDeleteTimerChanged(new_auto_delete_time: Annotated[int, 'newAutoDeleteTime'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageBase

new_auto_delete_time: Annotated[int, 'newAutoDeleteTime']
class MessageChannelCreated(channel_created: Annotated[Literal[True], 'channelCreated'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageBase

channel_created: Annotated[Literal[True], 'channelCreated']
class MessageChatMigratedFrom(chat_migrated_from: Annotated[int, 'chatMigratedFrom'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageBase

chat_migrated_from: Annotated[int, 'chatMigratedFrom']
class MessageChatMigratedTo(chat_migrated_to: Annotated[int, 'chatMigratedTo'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageBase

chat_migrated_to: Annotated[int, 'chatMigratedTo']
class MessageContact(contact: Annotated[Contact, 'contact'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageBase

contact: Annotated[Contact, 'contact']
class MessageContentContact(type: Annotated[Literal['contact'], 'type'], phone_number: Annotated[str, 'phoneNumber'], first_name: Annotated[str, 'firstName'], *, last_name: Annotated[str | None, 'lastName'] = None, vcard: Annotated[str | None, 'vcard'] = None)[source]

Bases: _Type

first_name: Annotated[str, 'firstName']
last_name: Annotated[str | None, 'lastName']
phone_number: Annotated[str, 'phoneNumber']
type: Annotated[Literal['contact'], 'type']
vcard: Annotated[str | None, 'vcard']
class MessageContentInvoice(type: Annotated[Literal['invoice'], 'type'], title: Annotated[str, 'title'], description: Annotated[str, 'description'], payload: Annotated[str, 'payload'], provider_token: Annotated[str, 'providerToken'], currency: Annotated[str, 'currency'], prices: Annotated[list[PriceTag], 'prices'], *, max_tip_amount: Annotated[int | None, 'maxTipAmount'] = None, suggested_tip_amounts: Annotated[list[int] | None, 'suggestedTipAmounts'] = None, provider_data: Annotated[str | None, 'providerData'] = None, photo_url: Annotated[str | None, 'photoUrl'] = None, photo_size: Annotated[int | None, 'photoSize'] = None, photo_width: Annotated[int | None, 'photoWidth'] = None, photo_height: Annotated[int | None, 'photoHeight'] = None, need_name: Annotated[bool | None, 'needName'] = None, need_phone_number: Annotated[bool | None, 'needPhoneNumber'] = None, need_email: Annotated[bool | None, 'needEmail'] = None, need_shipping_a_address: Annotated[bool | None, 'needShippingAAddress'] = None, send_phone_number_to_porvider: Annotated[bool | None, 'sendPhoneNumberToPorvider'] = None, send_email_to_provider: Annotated[bool | None, 'sendEmailToProvider'] = None, is_flexible: Annotated[bool | None, 'isFlexible'] = None)[source]

Bases: _Type

currency: Annotated[str, 'currency']
description: Annotated[str, 'description']
is_flexible: Annotated[bool | None, 'isFlexible']
max_tip_amount: Annotated[int | None, 'maxTipAmount']
need_email: Annotated[bool | None, 'needEmail']
need_name: Annotated[bool | None, 'needName']
need_phone_number: Annotated[bool | None, 'needPhoneNumber']
need_shipping_a_address: Annotated[bool | None, 'needShippingAAddress']
payload: Annotated[str, 'payload']
photo_height: Annotated[int | None, 'photoHeight']
photo_size: Annotated[int | None, 'photoSize']
photo_url: Annotated[str | None, 'photoUrl']
photo_width: Annotated[int | None, 'photoWidth']
prices: Annotated[list[PriceTag], 'prices']
provider_data: Annotated[str | None, 'providerData']
provider_token: Annotated[str, 'providerToken']
send_email_to_provider: Annotated[bool | None, 'sendEmailToProvider']
send_phone_number_to_porvider: Annotated[bool | None, 'sendPhoneNumberToPorvider']
suggested_tip_amounts: Annotated[list[int] | None, 'suggestedTipAmounts']
title: Annotated[str, 'title']
type: Annotated[Literal['invoice'], 'type']
class MessageContentLocation(type: Annotated[Literal['text'], 'type'], latitude: Annotated[int, 'latitude'], longitude: Annotated[int, 'longitude'], *, horizontal_accuracy: Annotated[int | None, 'horizontalAccuracy'] = None, live_period: Annotated[int | None, 'livePeriod'] = None, heading: Annotated[int | None, 'heading'] = None, proximity_alert_radius: Annotated[int | None, 'proximityAlertRadius'] = None)[source]

Bases: _Type

heading: Annotated[int | None, 'heading']
horizontal_accuracy: Annotated[int | None, 'horizontalAccuracy']
latitude: Annotated[int, 'latitude']
live_period: Annotated[int | None, 'livePeriod']
longitude: Annotated[int, 'longitude']
proximity_alert_radius: Annotated[int | None, 'proximityAlertRadius']
type: Annotated[Literal['text'], 'type']
class MessageContentText(type: Annotated[Literal['text'], 'type'], text: Annotated[str, 'text'], *, parse_mode: Annotated[Literal['HTML'] | Literal['Markdown'] | None, 'parseMode'] = None, entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None, 'entities'] = None, link_preview: Annotated[LinkPreview | None, 'linkPreview'] = None)[source]

Bases: _Type

entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None, 'entities']
parse_mode: Annotated[Literal['HTML'] | Literal['Markdown'] | None, 'parseMode']
text: Annotated[str, 'text']
type: Annotated[Literal['text'], 'type']
class MessageContentVenue(type: Annotated[Literal['venue'], 'type'], latitude: Annotated[int, 'latitude'], longitude: Annotated[int, 'longitude'], title: Annotated[str, 'title'], address: Annotated[str, 'address'], *, foursquare_id: Annotated[str | None, 'foursquareId'] = None, foursquare_type: Annotated[str | None, 'foursquareType'] = None, google_place_id: Annotated[str | None, 'googlePlaceId'] = None, google_place_type: Annotated[str | None, 'googlePlaceType'] = None)[source]

Bases: _Type

address: Annotated[str, 'address']
foursquare_id: Annotated[str | None, 'foursquareId']
foursquare_type: Annotated[str | None, 'foursquareType']
google_place_id: Annotated[str | None, 'googlePlaceId']
google_place_type: Annotated[str | None, 'googlePlaceType']
latitude: Annotated[int, 'latitude']
longitude: Annotated[int, 'longitude']
title: Annotated[str, 'title']
type: Annotated[Literal['venue'], 'type']
class MessageDeletedChatPhoto(deleted_chat_photo: Annotated[Literal[True], 'deletedChatPhoto'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageBase

deleted_chat_photo: Annotated[Literal[True], 'deletedChatPhoto']
class MessageDice(dice: Annotated[Dice, 'dice'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageBase

dice: Annotated[Dice, 'dice']
class MessageDocument(document: Annotated[Document, 'document'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, caption: Annotated[str | None, 'caption'] = None, caption_entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None, 'captionEntities'] = None, has_media_spoiler: Annotated[bool | None, 'hasMediaSpoiler'] = None, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageMediaBase

document: Annotated[Document, 'document']
class MessageEntityBankCard(type: Annotated[Literal['bankCard'], 'type'], offset: Annotated[int, 'offset'], length: Annotated[int, 'length'])[source]

Bases: _MessageEntityBase

type: Annotated[Literal['bankCard'], 'type']
class MessageEntityBlockquote(type: Annotated[Literal['blockquote'], 'type'], offset: Annotated[int, 'offset'], length: Annotated[int, 'length'], *, collapsible: Annotated[Literal[True] | None, 'collapsible'] = None)[source]

Bases: _MessageEntityBase

collapsible: Annotated[Literal[True] | None, 'collapsible']
type: Annotated[Literal['blockquote'], 'type']
class MessageEntityBold(type: Annotated[Literal['bold'], 'type'], offset: Annotated[int, 'offset'], length: Annotated[int, 'length'])[source]

Bases: _MessageEntityBase

type: Annotated[Literal['bold'], 'type']
class MessageEntityBotCommand(type: Annotated[Literal['botCommand'], 'type'], offset: Annotated[int, 'offset'], length: Annotated[int, 'length'])[source]

Bases: _MessageEntityBase

type: Annotated[Literal['botCommand'], 'type']
class MessageEntityCashtag(type: Annotated[Literal['cashtag'], 'type'], offset: Annotated[int, 'offset'], length: Annotated[int, 'length'])[source]

Bases: _MessageEntityBase

type: Annotated[Literal['cashtag'], 'type']
class MessageEntityCode(type: Annotated[Literal['code'], 'type'], offset: Annotated[int, 'offset'], length: Annotated[int, 'length'])[source]

Bases: _MessageEntityBase

type: Annotated[Literal['code'], 'type']
class MessageEntityCustomEmoji(type: Annotated[Literal['customEmoji'], 'type'], custom_emoji_id: Annotated[str, 'customEmojiId'], offset: Annotated[int, 'offset'], length: Annotated[int, 'length'])[source]

Bases: _MessageEntityBase

custom_emoji_id: Annotated[str, 'customEmojiId']
type: Annotated[Literal['customEmoji'], 'type']
class MessageEntityEmailAddress(type: Annotated[Literal['email'], 'type'], offset: Annotated[int, 'offset'], length: Annotated[int, 'length'])[source]

Bases: _MessageEntityBase

type: Annotated[Literal['email'], 'type']
class MessageEntityHashtag(type: Annotated[Literal['hashtag'], 'type'], offset: Annotated[int, 'offset'], length: Annotated[int, 'length'])[source]

Bases: _MessageEntityBase

type: Annotated[Literal['hashtag'], 'type']
class MessageEntityItalic(type: Annotated[Literal['italic'], 'type'], offset: Annotated[int, 'offset'], length: Annotated[int, 'length'])[source]

Bases: _MessageEntityBase

type: Annotated[Literal['italic'], 'type']
class MessageEntityMention(type: Annotated[Literal['mention'], 'type'], offset: Annotated[int, 'offset'], length: Annotated[int, 'length'])[source]

Bases: _MessageEntityBase

type: Annotated[Literal['mention'], 'type']
class MessageEntityPhoneNumber(type: Annotated[Literal['phoneNumber'], 'type'], offset: Annotated[int, 'offset'], length: Annotated[int, 'length'])[source]

Bases: _MessageEntityBase

type: Annotated[Literal['phoneNumber'], 'type']
class MessageEntityPre(type: Annotated[Literal['pre'], 'type'], language: Annotated[str, 'language'], offset: Annotated[int, 'offset'], length: Annotated[int, 'length'])[source]

Bases: _MessageEntityBase

language: Annotated[str, 'language']
type: Annotated[Literal['pre'], 'type']
class MessageEntitySpoiler(type: Annotated[Literal['spoiler'], 'type'], offset: Annotated[int, 'offset'], length: Annotated[int, 'length'])[source]

Bases: _MessageEntityBase

type: Annotated[Literal['spoiler'], 'type']
class MessageEntityStrikethrough(type: Annotated[Literal['strikethrough'], 'type'], offset: Annotated[int, 'offset'], length: Annotated[int, 'length'])[source]

Bases: _MessageEntityBase

type: Annotated[Literal['strikethrough'], 'type']

Bases: _MessageEntityBase

type: Annotated[Literal['textLink'], 'type']
url: Annotated[str, 'url']
class MessageEntityTextMention(type: Annotated[Literal['textMention'], 'type'], user_id: Annotated[int, 'userId'], offset: Annotated[int, 'offset'], length: Annotated[int, 'length'])[source]

Bases: _MessageEntityBase

type: Annotated[Literal['textMention'], 'type']
user_id: Annotated[int, 'userId']
class MessageEntityURL(type: Annotated[Literal['url'], 'type'], offset: Annotated[int, 'offset'], length: Annotated[int, 'length'])[source]

Bases: _MessageEntityBase

type: Annotated[Literal['url'], 'type']
class MessageEntityUnderline(type: Annotated[Literal['underline'], 'type'], offset: Annotated[int, 'offset'], length: Annotated[int, 'length'])[source]

Bases: _MessageEntityBase

type: Annotated[Literal['underline'], 'type']
class MessageForumTopicClosed(forum_topic_closed: Annotated[Literal[True], 'forumTopicClosed'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageBase

forum_topic_closed: Annotated[Literal[True], 'forumTopicClosed']
class MessageForumTopicCreated(forum_topic_created: Annotated[Any, 'forumTopicCreated'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageBase

forum_topic_created: Annotated[Any, 'forumTopicCreated']
class MessageForumTopicEdited(forum_topic_edited: Annotated[Any, 'forumTopicEdited'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageBase

forum_topic_edited: Annotated[Any, 'forumTopicEdited']
class MessageForumTopicReopened(forum_topic_reopened: Annotated[Literal[True], 'forumTopicReopened'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageBase

forum_topic_reopened: Annotated[Literal[True], 'forumTopicReopened']
class MessageGame(game: Annotated[Game, 'game'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageBase

game: Annotated[Game, 'game']
class MessageGiveaway(giveaway: Annotated[Giveaway, 'giveaway'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageBase

giveaway: Annotated[Giveaway, 'giveaway']
class MessageGroupCreated(group_created: Annotated[Literal[True], 'groupCreated'], new_chat_members: Annotated[list[User], 'newChatMembers'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageBase

group_created: Annotated[Literal[True], 'groupCreated']
new_chat_members: Annotated[list[User], 'newChatMembers']
class MessageInteractions(chat_id: Annotated[int, 'chatId'], message_id: Annotated[int, 'messageId'], reactions: Annotated[list[MessageReaction], 'reactions'], views: Annotated[int, 'views'], forwards: Annotated[int, 'forwards'])[source]

Bases: _Type

chat_id: Annotated[int, 'chatId']
forwards: Annotated[int, 'forwards']
message_id: Annotated[int, 'messageId']
reactions: Annotated[list[MessageReaction], 'reactions']
views: Annotated[int, 'views']
class MessageInvoice(invoice: Annotated[Invoice, 'invoice'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageBase

invoice: Annotated[Invoice, 'invoice']
class MessageLeftChatMember(left_chat_member: Annotated[User, 'leftChatMember'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageBase

left_chat_member: Annotated[User, 'leftChatMember']

Bases: _MessageBase

class MessageLocation(location: Annotated[Location, 'location'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageBase

location: Annotated[Location, 'location']
class MessageNewChatMembers(new_chat_members: Annotated[list[User], 'newChatMembers'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageBase

new_chat_members: Annotated[list[User], 'newChatMembers']
class MessageNewChatPhoto(new_chat_photo: Annotated[Photo, 'newChatPhoto'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageBase

new_chat_photo: Annotated[Photo, 'newChatPhoto']
class MessageNewChatTitle(new_chat_title: Annotated[str, 'newChatTitle'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageBase

new_chat_title: Annotated[str, 'newChatTitle']
class MessagePhoto(photo: Annotated[Photo, 'photo'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, caption: Annotated[str | None, 'caption'] = None, caption_entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None, 'captionEntities'] = None, has_media_spoiler: Annotated[bool | None, 'hasMediaSpoiler'] = None, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageMediaBase

photo: Annotated[Photo, 'photo']
class MessagePinnedMessage(pinned_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment, 'pinnedMessage'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageBase

pinned_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment, 'pinnedMessage']
class MessagePoll(poll: Annotated[Poll, 'poll'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageBase

poll: Annotated[Poll, 'poll']
class MessageReaction(reaction: Annotated[ReactionEmoji | ReactionCustom | ReactionPaid, 'reaction'], count: Annotated[int, 'count'], choosers: Annotated[list[int], 'choosers'], chosen: Annotated[bool, 'chosen'])[source]

Bases: _Type

choosers: Annotated[list[int], 'choosers']
chosen: Annotated[bool, 'chosen']
count: Annotated[int, 'count']
reaction: Annotated[ReactionEmoji | ReactionCustom | ReactionPaid, 'reaction']
class MessageReactionCount(chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], message_id: Annotated[int, 'messageId'], date: Annotated[datetime, 'date'], reactions: Annotated[list[ReactionCount], 'reactions'])[source]

Bases: _Type

chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat']
date: Annotated[datetime, 'date']
message_id: Annotated[int, 'messageId']
reactions: Annotated[list[ReactionCount], 'reactions']
class MessageReactions(chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], message_id: Annotated[int, 'messageId'], date: Annotated[datetime, 'date'], old_reactions: Annotated[list[ReactionEmoji | ReactionCustom | ReactionPaid], 'oldReactions'], new_reactions: Annotated[list[ReactionEmoji | ReactionCustom | ReactionPaid], 'newReactions'], *, user: Annotated[User | None, 'user'] = None, actor_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'actorChat'] = None)[source]

Bases: _Type

actor_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'actorChat']
chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat']
date: Annotated[datetime, 'date']
message_id: Annotated[int, 'messageId']
new_reactions: Annotated[list[ReactionEmoji | ReactionCustom | ReactionPaid], 'newReactions']
old_reactions: Annotated[list[ReactionEmoji | ReactionCustom | ReactionPaid], 'oldReactions']
user: Annotated[User | None, 'user']
class MessageReference(chat_id: Annotated[int, 'chatId'], message_id: Annotated[int, 'messageId'])[source]

Bases: _Type

chat_id: Annotated[int, 'chatId']
message_id: Annotated[int, 'messageId']
class MessageRefundedPayment(refunded_payment: Annotated[RefundedPayment, 'refundedPayment'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageBase

refunded_payment: Annotated[RefundedPayment, 'refundedPayment']
class MessageSticker(sticker: Annotated[Sticker, 'sticker'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageBase

sticker: Annotated[Sticker, 'sticker']
class MessageSuccessfulPayment(successful_payment: Annotated[SuccessfulPayment, 'successfulPayment'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageBase

successful_payment: Annotated[SuccessfulPayment, 'successfulPayment']
class MessageSupergroupCreated(supergroup_created: Annotated[Literal[True], 'supergroupCreated'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageBase

supergroup_created: Annotated[Literal[True], 'supergroupCreated']
class MessageText(text: Annotated[str, 'text'], entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji], 'entities'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, link_preview: Annotated[LinkPreview | None, 'linkPreview'] = None, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageBase

entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji], 'entities']
text: Annotated[str, 'text']
class MessageUnsupported(unsupported: Annotated[Literal[True], 'unsupported'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageBase

unsupported: Annotated[Literal[True], 'unsupported']
class MessageUserShared(user_shared: Annotated[Any, 'userShared'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageBase

user_shared: Annotated[Any, 'userShared']
class MessageVenue(venue: Annotated[Venue, 'venue'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageBase

venue: Annotated[Venue, 'venue']
class MessageVideo(video: Annotated[Video, 'video'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, caption: Annotated[str | None, 'caption'] = None, caption_entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None, 'captionEntities'] = None, has_media_spoiler: Annotated[bool | None, 'hasMediaSpoiler'] = None, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageMediaBase

video: Annotated[Video, 'video']
class MessageVideoChatEnded(video_chat_ended: Annotated[Any, 'videoChatEnded'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageBase

video_chat_ended: Annotated[Any, 'videoChatEnded']
class MessageVideoChatScheduled(video_chat_scheduled: Annotated[Any, 'videoChatScheduled'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageBase

video_chat_scheduled: Annotated[Any, 'videoChatScheduled']
class MessageVideoChatStarted(video_chat_started: Annotated[Literal[True], 'videoChatStarted'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageBase

video_chat_started: Annotated[Literal[True], 'videoChatStarted']
class MessageVideoNote(video_note: Annotated[VideoNote, 'videoNote'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageBase

video_note: Annotated[VideoNote, 'videoNote']
class MessageVoice(voice: Annotated[Voice, 'voice'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, caption: Annotated[str | None, 'caption'] = None, caption_entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None, 'captionEntities'] = None, has_media_spoiler: Annotated[bool | None, 'hasMediaSpoiler'] = None, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageMediaBase

voice: Annotated[Voice, 'voice']
class MessageWriteAccessAllowed(write_access_allowed: Annotated[Any, 'writeAccessAllowed'], out: Annotated[bool, 'out'], id: Annotated[int, 'id'], date: Annotated[datetime, 'date'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], is_topic_message: Annotated[bool, 'isTopicMessage'], *, thread_id: Annotated[int | None, 'threadId'] = None, from_: Annotated[User | None, 'from'] = None, sender_chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel | None, 'senderChat'] = None, link: Annotated[str | None, 'link'] = None, forward_from: Annotated[ForwardHeaderUser | ForwardHeaderChannel | ForwardHeaderSupergroup | ForwardHeaderHidden | ForwardHeaderUnsupported | None, 'forwardFrom'] = None, is_automatic_forward: Annotated[bool | None, 'isAutomaticForward'] = None, reply_to_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment | None, 'replyToMessage'] = None, reply_to_message_id: Annotated[int | None, 'replyToMessageId'] = None, reactions: Annotated[list[MessageReaction] | None, 'reactions'] = None, reply_quote: Annotated[ReplyQuote | None, 'replyQuote'] = None, via_bot: Annotated[User | None, 'viaBot'] = None, edit_date: Annotated[datetime | None, 'editDate'] = None, has_protected_content: Annotated[bool | None, 'hasProtectedContent'] = None, media_group_id: Annotated[str | None, 'mediaGroupId'] = None, author_signature: Annotated[str | None, 'authorSignature'] = None, views: Annotated[int | None, 'views'] = None, forwards: Annotated[int | None, 'forwards'] = None, reply_markup: Annotated[ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None, 'replyMarkup'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None, sender_boost_count: Annotated[int | None, 'senderBoostCount'] = None, via_business_bot: Annotated[User | None, 'viaBusinessBot'] = None, effect_id: Annotated[str | None, 'effectId'] = None, scheduled: Annotated[bool | None, 'scheduled'] = None)[source]

Bases: _MessageBase

write_access_allowed: Annotated[Any, 'writeAccessAllowed']
class MiniAppInfo(url: Annotated[str, 'url'])[source]

Bases: _Type

url: Annotated[str, 'url']
class NetworkStatistics(messages: Annotated[NetworkStatisticsEntry, 'messages'], cdn: Annotated[NetworkStatisticsEntry, 'cdn'])[source]

Bases: _Type

cdn: Annotated[NetworkStatisticsEntry, 'cdn']
messages: Annotated[NetworkStatisticsEntry, 'messages']
class NetworkStatisticsEntry(sent: Annotated[int, 'sent'], received: Annotated[int, 'received'])[source]

Bases: _Type

received: Annotated[int, 'received']
sent: Annotated[int, 'sent']
class OpeningHours(timezone: Annotated[str, 'timezone'], intervals: Annotated[list[Any], 'intervals'])[source]

Bases: _Type

intervals: Annotated[list[Any], 'intervals']
timezone: Annotated[str, 'timezone']
class OrderInfo(*, name: Annotated[str | None, 'name'] = None, phone_number: Annotated[str | None, 'phoneNumber'] = None, email: Annotated[str | None, 'email'] = None, shipping_address: Annotated[ShippingAddress | None, 'shippingAddress'] = None)[source]

Bases: _Type

email: Annotated[str | None, 'email']
name: Annotated[str | None, 'name']
phone_number: Annotated[str | None, 'phoneNumber']
shipping_address: Annotated[ShippingAddress | None, 'shippingAddress']
class Photo(file_id: Annotated[str, 'fileId'], file_unique_id: Annotated[str, 'fileUniqueId'], width: Annotated[int, 'width'], height: Annotated[int, 'height'], file_size: Annotated[int, 'fileSize'], thumbnails: Annotated[list[Thumbnail], 'thumbnails'])[source]

Bases: _Type

file_id: Annotated[str, 'fileId']
file_size: Annotated[int, 'fileSize']
file_unique_id: Annotated[str, 'fileUniqueId']
height: Annotated[int, 'height']
thumbnails: Annotated[list[Thumbnail], 'thumbnails']
width: Annotated[int, 'width']
class Poll(id: Annotated[str, 'id'], question: Annotated[str, 'question'], question_entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji], 'questionEntities'], options: Annotated[list[PollOption], 'options'], total_voter_count: Annotated[int, 'totalVoterCount'], is_closed: Annotated[bool, 'isClosed'], is_anonymous: Annotated[bool, 'isAnonymous'], type: Annotated[Any, 'type'], *, allow_multiple_answers: Annotated[bool | None, 'allowMultipleAnswers'] = None, correct_option_index: Annotated[int | None, 'correctOptionIndex'] = None, explanation: Annotated[str | None, 'explanation'] = None, explanation_entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None, 'explanationEntities'] = None, open_period: Annotated[int | None, 'openPeriod'] = None, close_date: Annotated[datetime | None, 'closeDate'] = None)[source]

Bases: _Type

allow_multiple_answers: Annotated[bool | None, 'allowMultipleAnswers']
close_date: Annotated[datetime | None, 'closeDate']
correct_option_index: Annotated[int | None, 'correctOptionIndex']
explanation: Annotated[str | None, 'explanation']
explanation_entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None, 'explanationEntities']
id: Annotated[str, 'id']
is_anonymous: Annotated[bool, 'isAnonymous']
is_closed: Annotated[bool, 'isClosed']
open_period: Annotated[int | None, 'openPeriod']
options: Annotated[list[PollOption], 'options']
question: Annotated[str, 'question']
question_entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji], 'questionEntities']
total_voter_count: Annotated[int, 'totalVoterCount']
type: Annotated[Any, 'type']
class PollOption(text: Annotated[str, 'text'], entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji], 'entities'], voter_count: Annotated[int, 'voterCount'])[source]

Bases: _Type

entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji], 'entities']
text: Annotated[str, 'text']
voter_count: Annotated[int, 'voterCount']
class PreCheckoutQuery(id: Annotated[str, 'id'], from_: Annotated[User, 'from'], currency: Annotated[str, 'currency'], total_amount: Annotated[int, 'totalAmount'], invoice_payload: Annotated[str, 'invoicePayload'], *, shipping_option_id: Annotated[str | None, 'shippingOptionId'] = None, order_info: Annotated[OrderInfo | None, 'orderInfo'] = None)[source]

Bases: _Type

currency: Annotated[str, 'currency']
from_: Annotated[User, 'from']
id: Annotated[str, 'id']
invoice_payload: Annotated[str, 'invoicePayload']
order_info: Annotated[OrderInfo | None, 'orderInfo']
shipping_option_id: Annotated[str | None, 'shippingOptionId']
total_amount: Annotated[int, 'totalAmount']
class PriceTag(label: Annotated[str, 'label'], amount: Annotated[int, 'amount'])[source]

Bases: _Type

amount: Annotated[int, 'amount']
label: Annotated[str, 'label']
class ReactionCount(reaction: Annotated[ReactionEmoji | ReactionCustom | ReactionPaid, 'reaction'], count: Annotated[int, 'count'])[source]

Bases: _Type

count: Annotated[int, 'count']
reaction: Annotated[ReactionEmoji | ReactionCustom | ReactionPaid, 'reaction']
class ReactionCustom(type: Annotated[Literal['custom'], 'type'], id: Annotated[str, 'id'])[source]

Bases: _Type

id: Annotated[str, 'id']
type: Annotated[Literal['custom'], 'type']
class ReactionEmoji(type: Annotated[Literal['emoji'], 'type'], emoji: Annotated[str, 'emoji'])[source]

Bases: _Type

emoji: Annotated[str, 'emoji']
type: Annotated[Literal['emoji'], 'type']
class ReactionPaid(type: Annotated[Literal['paid'], 'type'])[source]

Bases: _Type

type: Annotated[Literal['paid'], 'type']
class RefundedPayment(currency: Annotated[str, 'currency'], total_amount: Annotated[int, 'totalAmount'], invoice_payload: Annotated[str, 'invoicePayload'], telegram_payment_charge_id: Annotated[str, 'telegramPaymentChargeId'], *, provider_payment_charge_id: Annotated[str | None, 'providerPaymentChargeId'] = None)[source]

Bases: _Type

currency: Annotated[str, 'currency']
invoice_payload: Annotated[str, 'invoicePayload']
provider_payment_charge_id: Annotated[str | None, 'providerPaymentChargeId']
telegram_payment_charge_id: Annotated[str, 'telegramPaymentChargeId']
total_amount: Annotated[int, 'totalAmount']
class ReplyMarkupForceReply(force_reply: Annotated[Literal[True], 'forceReply'], *, input_field_placeholder: Annotated[str | None, 'inputFieldPlaceholder'] = None, selective: Annotated[bool | None, 'selective'] = None)[source]

Bases: _Type

force_reply: Annotated[Literal[True], 'forceReply']
input_field_placeholder: Annotated[str | None, 'inputFieldPlaceholder']
selective: Annotated[bool | None, 'selective']
class ReplyMarkupInlineKeyboard(inline_keyboard: Annotated[list[list[InlineKeyboardButtonURL | InlineKeyboardButtonCallback | InlineKeyboardButtonMiniApp | InlineKeyboardButtonLogin | InlineKeyboardButtonSwitchInline | InlineKeyboardButtonSwitchInlineCurrent | InlineKeyboardButtonSwitchInlineChosen | InlineKeyboardButtonGame | InlineKeyboardButtonPay | InlineKeyboardButtonCopy]], 'inlineKeyboard'])[source]

Bases: _Type

inline_keyboard: Annotated[list[list[InlineKeyboardButtonURL | InlineKeyboardButtonCallback | InlineKeyboardButtonMiniApp | InlineKeyboardButtonLogin | InlineKeyboardButtonSwitchInline | InlineKeyboardButtonSwitchInlineCurrent | InlineKeyboardButtonSwitchInlineChosen | InlineKeyboardButtonGame | InlineKeyboardButtonPay | InlineKeyboardButtonCopy]], 'inlineKeyboard']
class ReplyMarkupKeyboard(keyboard: Annotated[list[list[KeyboardButtonText | KeyboardButtonRequestUser | KeyboardButtonRequestChat | KeyboardButtonRequestContact | KeyboardButtonRequestLocation | KeyboardButtonRequestPoll | KeyboardButtonMiniApp]], 'keyboard'], *, is_persistent: Annotated[bool | None, 'isPersistent'] = None, resize_keyboard: Annotated[bool | None, 'resizeKeyboard'] = None, one_time_keyboard: Annotated[bool | None, 'oneTimeKeyboard'] = None, input_field_placeholder: Annotated[str | None, 'inputFieldPlaceholder'] = None, selective: Annotated[bool | None, 'selective'] = None)[source]

Bases: _Type

input_field_placeholder: Annotated[str | None, 'inputFieldPlaceholder']
is_persistent: Annotated[bool | None, 'isPersistent']
keyboard: Annotated[list[list[KeyboardButtonText | KeyboardButtonRequestUser | KeyboardButtonRequestChat | KeyboardButtonRequestContact | KeyboardButtonRequestLocation | KeyboardButtonRequestPoll | KeyboardButtonMiniApp]], 'keyboard']
one_time_keyboard: Annotated[bool | None, 'oneTimeKeyboard']
resize_keyboard: Annotated[bool | None, 'resizeKeyboard']
selective: Annotated[bool | None, 'selective']
class ReplyMarkupRemoveKeyboard(remove_keyboard: Annotated[Literal[True], 'removeKeyboard'], *, selective: Annotated[bool | None, 'selective'] = None)[source]

Bases: _Type

remove_keyboard: Annotated[Literal[True], 'removeKeyboard']
selective: Annotated[bool | None, 'selective']
class ReplyQuote(offset: Annotated[int, 'offset'], text: Annotated[str, 'text'], entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji], 'entities'])[source]

Bases: _Type

entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji], 'entities']
offset: Annotated[int, 'offset']
text: Annotated[str, 'text']
class ReplyToMessage(message_id: Annotated[int, 'messageId'], *, quote: Annotated[ReplyQuote | None, 'quote'] = None)[source]

Bases: _Type

message_id: Annotated[int, 'messageId']
quote: Annotated[ReplyQuote | None, 'quote']
class ReplyToStory(chat_id: Annotated[int | str | Literal['me'], 'chatId'], story_id: Annotated[int, 'storyId'])[source]

Bases: _Type

chat_id: Annotated[int | str | Literal['me'], 'chatId']
story_id: Annotated[int, 'storyId']
class RestrictionReason(platform: Annotated[str, 'platform'], reason: Annotated[str, 'reason'], text: Annotated[str, 'text'])[source]

Bases: _Type

platform: Annotated[str, 'platform']
reason: Annotated[str, 'reason']
text: Annotated[str, 'text']
class ShippingAddress(country_code: Annotated[str, 'countryCode'], state: Annotated[str, 'state'], city: Annotated[str, 'city'], street_line1: Annotated[str, 'streetLine1'], street_line2: Annotated[str, 'streetLine2'], post_code: Annotated[str, 'postCode'])[source]

Bases: _Type

city: Annotated[str, 'city']
country_code: Annotated[str, 'countryCode']
post_code: Annotated[str, 'postCode']
state: Annotated[str, 'state']
street_line1: Annotated[str, 'streetLine1']
street_line2: Annotated[str, 'streetLine2']
class Sticker(file_id: Annotated[str, 'fileId'], file_unique_id: Annotated[str, 'fileUniqueId'], type: Annotated[Any, 'type'], width: Annotated[int, 'width'], height: Annotated[int, 'height'], is_animated: Annotated[bool, 'isAnimated'], is_video: Annotated[bool, 'isVideo'], thumbnails: Annotated[list[Thumbnail], 'thumbnails'], *, emoji: Annotated[str | None, 'emoji'] = None, set_name: Annotated[str | None, 'setName'] = None, premium_animation: Annotated[Any | None, 'premiumAnimation'] = None, mask_position: Annotated[MaskPosition | None, 'maskPosition'] = None, custom_emoji_id: Annotated[str | None, 'customEmojiId'] = None, needs_repainting: Annotated[bool | None, 'needsRepainting'] = None, file_size: Annotated[int | None, 'fileSize'] = None)[source]

Bases: _Type

custom_emoji_id: Annotated[str | None, 'customEmojiId']
emoji: Annotated[str | None, 'emoji']
file_id: Annotated[str, 'fileId']
file_size: Annotated[int | None, 'fileSize']
file_unique_id: Annotated[str, 'fileUniqueId']
height: Annotated[int, 'height']
is_animated: Annotated[bool, 'isAnimated']
is_video: Annotated[bool, 'isVideo']
mask_position: Annotated[MaskPosition | None, 'maskPosition']
needs_repainting: Annotated[bool | None, 'needsRepainting']
premium_animation: Annotated[Any | None, 'premiumAnimation']
set_name: Annotated[str | None, 'setName']
thumbnails: Annotated[list[Thumbnail], 'thumbnails']
type: Annotated[Any, 'type']
width: Annotated[int, 'width']
class Story(out: Annotated[bool, 'out'], id: Annotated[int, 'id'], chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat'], date: Annotated[datetime, 'date'], edited: Annotated[bool, 'edited'], content: Annotated[StoryContentPhoto | StoryContentVideo | StoryContentUnsupported, 'content'], interactive_areas: Annotated[list[StoryInteractiveAreaLocation | StoryInteractiveAreaVenue | StoryInteractiveAreaReaction | StoryInteractiveAreaMessage], 'interactiveAreas'], highlighted: Annotated[bool, 'highlighted'], *, interactions: Annotated[StoryInteractions | None, 'interactions'] = None, privacy: Annotated[StoryPrivacyEveryone | StoryPrivacyConctacts | StoryPrivacyCloseFriends | StoryPrivacyOnly | None, 'privacy'] = None, caption: Annotated[str | None, 'caption'] = None, caption_entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None, 'captionEntities'] = None)[source]

Bases: _Type

caption: Annotated[str | None, 'caption']
caption_entities: Annotated[list[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None, 'captionEntities']
chat: Annotated[ChatPPrivate | ChatPGroup | ChatPSupergroup | ChatPChannel, 'chat']
content: Annotated[StoryContentPhoto | StoryContentVideo | StoryContentUnsupported, 'content']
date: Annotated[datetime, 'date']
edited: Annotated[bool, 'edited']
highlighted: Annotated[bool, 'highlighted']
id: Annotated[int, 'id']
interactions: Annotated[StoryInteractions | None, 'interactions']
interactive_areas: Annotated[list[StoryInteractiveAreaLocation | StoryInteractiveAreaVenue | StoryInteractiveAreaReaction | StoryInteractiveAreaMessage], 'interactiveAreas']
out: Annotated[bool, 'out']
privacy: Annotated[StoryPrivacyEveryone | StoryPrivacyConctacts | StoryPrivacyCloseFriends | StoryPrivacyOnly | None, 'privacy']
class StoryContentPhoto(photo: Annotated[Photo, 'photo'])[source]

Bases: _Type

photo: Annotated[Photo, 'photo']
class StoryContentUnsupported(unsupported: Annotated[Literal[True], 'unsupported'])[source]

Bases: _Type

unsupported: Annotated[Literal[True], 'unsupported']
class StoryContentVideo(video: Annotated[Video, 'video'])[source]

Bases: _Type

video: Annotated[Video, 'video']
class StoryInteractions(views: Annotated[int, 'views'], forwards: Annotated[int, 'forwards'], *, reactions: Annotated[list[StoryReaction] | None, 'reactions'] = None, reaction_count: Annotated[int | None, 'reactionCount'] = None)[source]

Bases: _Type

forwards: Annotated[int, 'forwards']
reaction_count: Annotated[int | None, 'reactionCount']
reactions: Annotated[list[StoryReaction] | None, 'reactions']
views: Annotated[int, 'views']
class StoryInteractiveAreaLocation(location: Annotated[Location, 'location'], position: Annotated[StoryInteractiveAreaPosition, 'position'])[source]

Bases: _StoryInteractiveAreaPositionCommon

location: Annotated[Location, 'location']
class StoryInteractiveAreaMessage(message_reference: Annotated[MessageReference, 'messageReference'], position: Annotated[StoryInteractiveAreaPosition, 'position'])[source]

Bases: _StoryInteractiveAreaPositionCommon

message_reference: Annotated[MessageReference, 'messageReference']
class StoryInteractiveAreaPosition(x_percentage: Annotated[int, 'xPercentage'], y_percentage: Annotated[int, 'yPercentage'], width_percentage: Annotated[int, 'widthPercentage'], height_percentage: Annotated[int, 'heightPercentage'], rotation_angle: Annotated[int, 'rotationAngle'])[source]

Bases: _Type

height_percentage: Annotated[int, 'heightPercentage']
rotation_angle: Annotated[int, 'rotationAngle']
width_percentage: Annotated[int, 'widthPercentage']
x_percentage: Annotated[int, 'xPercentage']
y_percentage: Annotated[int, 'yPercentage']
class StoryInteractiveAreaReaction(reaction: Annotated[ReactionEmoji | ReactionCustom | ReactionPaid, 'reaction'], position: Annotated[StoryInteractiveAreaPosition, 'position'], *, count: Annotated[int | None, 'count'] = None, dark: Annotated[bool | None, 'dark'] = None, flipped: Annotated[bool | None, 'flipped'] = None)[source]

Bases: _StoryInteractiveAreaPositionCommon

count: Annotated[int | None, 'count']
dark: Annotated[bool | None, 'dark']
flipped: Annotated[bool | None, 'flipped']
reaction: Annotated[ReactionEmoji | ReactionCustom | ReactionPaid, 'reaction']
class StoryInteractiveAreaVenue(venue: Annotated[Venue, 'venue'], position: Annotated[StoryInteractiveAreaPosition, 'position'])[source]

Bases: _StoryInteractiveAreaPositionCommon

venue: Annotated[Venue, 'venue']
class StoryPrivacyCloseFriends(close_friends: Annotated[Literal[True], 'closeFriends'])[source]

Bases: _Type

close_friends: Annotated[Literal[True], 'closeFriends']
class StoryPrivacyConctacts(contacts_except: Annotated[list[int], 'contactsExcept'])[source]

Bases: _Type

contacts_except: Annotated[list[int], 'contactsExcept']
class StoryPrivacyEveryone(everyone_except: Annotated[list[int], 'everyoneExcept'])[source]

Bases: _Type

everyone_except: Annotated[list[int], 'everyoneExcept']
class StoryPrivacyOnly(only: Annotated[list[int], 'only'])[source]

Bases: _Type

only: Annotated[list[int], 'only']
class StoryReaction(reaction: Annotated[ReactionEmoji | ReactionCustom | ReactionPaid, 'reaction'], count: Annotated[int, 'count'], chosen: Annotated[bool, 'chosen'])[source]

Bases: _Type

chosen: Annotated[bool, 'chosen']
count: Annotated[int, 'count']
reaction: Annotated[ReactionEmoji | ReactionCustom | ReactionPaid, 'reaction']
class StoryReference(chat_id: Annotated[int, 'chatId'], story_id: Annotated[int, 'storyId'])[source]

Bases: _Type

chat_id: Annotated[int, 'chatId']
story_id: Annotated[int, 'storyId']
class SuccessfulPayment(currency: Annotated[str, 'currency'], total_amount: Annotated[int, 'totalAmount'], invoice_payload: Annotated[str, 'invoicePayload'], telegram_payment_charge_id: Annotated[str, 'telegramPaymentChargeId'], provider_payment_charge_id: Annotated[str, 'providerPaymentChargeId'], *, shipping_option_id: Annotated[str | None, 'shippingOptionId'] = None, order_info: Annotated[OrderInfo | None, 'orderInfo'] = None)[source]

Bases: _Type

currency: Annotated[str, 'currency']
invoice_payload: Annotated[str, 'invoicePayload']
order_info: Annotated[OrderInfo | None, 'orderInfo']
provider_payment_charge_id: Annotated[str, 'providerPaymentChargeId']
shipping_option_id: Annotated[str | None, 'shippingOptionId']
telegram_payment_charge_id: Annotated[str, 'telegramPaymentChargeId']
total_amount: Annotated[int, 'totalAmount']
class SwitchInlineQueryChosenChats(query: Annotated[str, 'query'], *, allow_users: Annotated[bool | None, 'allowUsers'] = None, allow_bots: Annotated[bool | None, 'allowBots'] = None, allow_groups: Annotated[bool | None, 'allowGroups'] = None, allow_channels: Annotated[bool | None, 'allowChannels'] = None)[source]

Bases: _Type

allow_bots: Annotated[bool | None, 'allowBots']
allow_channels: Annotated[bool | None, 'allowChannels']
allow_groups: Annotated[bool | None, 'allowGroups']
allow_users: Annotated[bool | None, 'allowUsers']
query: Annotated[str, 'query']
class Thumbnail(file_id: Annotated[str, 'fileId'], file_unique_id: Annotated[str, 'fileUniqueId'], width: Annotated[int, 'width'], height: Annotated[int, 'height'], file_size: Annotated[int, 'fileSize'])[source]

Bases: _Type

file_id: Annotated[str, 'fileId']
file_size: Annotated[int, 'fileSize']
file_unique_id: Annotated[str, 'fileUniqueId']
height: Annotated[int, 'height']
width: Annotated[int, 'width']
class UpdateBusinessConnection(business_connection: Annotated[BusinessConnection, 'businessConnection'])[source]

Bases: _Type

business_connection: Annotated[BusinessConnection, 'businessConnection']
class UpdateCallbackQuery(callback_query: Annotated[CallbackQuery, 'callbackQuery'])[source]

Bases: _Type

callback_query: Annotated[CallbackQuery, 'callbackQuery']
class UpdateChatMember(chat_member: Annotated[ChatMemberUpdated, 'chatMember'])[source]

Bases: _Type

chat_member: Annotated[ChatMemberUpdated, 'chatMember']
class UpdateChosenInlineResult(chosen_inline_result: Annotated[ChosenInlineResult, 'chosenInlineResult'])[source]

Bases: _Type

chosen_inline_result: Annotated[ChosenInlineResult, 'chosenInlineResult']
class UpdateDeletedChat(deleted_chat: Annotated[Any, 'deletedChat'])[source]

Bases: _Type

deleted_chat: Annotated[Any, 'deletedChat']
class UpdateDeletedStory(deleted_story: Annotated[StoryReference, 'deletedStory'])[source]

Bases: _Type

deleted_story: Annotated[StoryReference, 'deletedStory']
class UpdateEditedChat(edited_chat: Annotated[ChatListItem, 'editedChat'])[source]

Bases: _Type

edited_chat: Annotated[ChatListItem, 'editedChat']
class UpdateInlineQuery(inline_query: Annotated[InlineQuery, 'inlineQuery'])[source]

Bases: _Type

inline_query: Annotated[InlineQuery, 'inlineQuery']
class UpdateJoinRequest(join_request: Annotated[JoinRequest, 'joinRequest'])[source]

Bases: _Type

join_request: Annotated[JoinRequest, 'joinRequest']
class UpdateMessageEdited(edited_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment, 'editedMessage'])[source]

Bases: _Type

edited_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment, 'editedMessage']
class UpdateMessageInteractions(message_interactions: Annotated[MessageInteractions, 'messageInteractions'])[source]

Bases: _Type

message_interactions: Annotated[MessageInteractions, 'messageInteractions']
class UpdateMessageReactionCount(message_reaction_count: Annotated[MessageReactionCount, 'messageReactionCount'])[source]

Bases: _Type

message_reaction_count: Annotated[MessageReactionCount, 'messageReactionCount']
class UpdateMessageReactions(message_reactions: Annotated[MessageReactions, 'messageReactions'])[source]

Bases: _Type

message_reactions: Annotated[MessageReactions, 'messageReactions']
class UpdateMessageScheduled(scheduled_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment, 'scheduledMessage'])[source]

Bases: _Type

scheduled_message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment, 'scheduledMessage']
class UpdateMessagesDeleted(deleted_messages: Annotated[list[MessageReference], 'deletedMessages'], *, scheduled: Annotated[bool | None, 'scheduled'] = None, business_connection_id: Annotated[str | None, 'businessConnectionId'] = None)[source]

Bases: _Type

business_connection_id: Annotated[str | None, 'businessConnectionId']
deleted_messages: Annotated[list[MessageReference], 'deletedMessages']
scheduled: Annotated[bool | None, 'scheduled']
class UpdateMyChatMember(my_chat_member: Annotated[ChatMemberUpdated, 'myChatMember'])[source]

Bases: _Type

my_chat_member: Annotated[ChatMemberUpdated, 'myChatMember']
class UpdateNewChat(new_chat: Annotated[ChatListItem, 'newChat'])[source]

Bases: _Type

new_chat: Annotated[ChatListItem, 'newChat']
class UpdateNewMessage(message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment, 'message'])[source]

Bases: _Type

message: Annotated[MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment, 'message']
class UpdateNewStory(story: Annotated[Story, 'story'])[source]

Bases: _Type

story: Annotated[Story, 'story']
class UpdatePreCheckoutQuery(pre_checkout_query: Annotated[PreCheckoutQuery, 'preCheckoutQuery'])[source]

Bases: _Type

pre_checkout_query: Annotated[PreCheckoutQuery, 'preCheckoutQuery']
class UpdateVideoChat(video_chat: Annotated[VideoChatActive | VideoChatScheduled | VideoChatEnded, 'videoChat'])[source]

Bases: _Type

video_chat: Annotated[VideoChatActive | VideoChatScheduled | VideoChatEnded, 'videoChat']
class User(id: Annotated[int, 'id'], color: Annotated[int, 'color'], is_bot: Annotated[bool, 'isBot'], first_name: Annotated[str, 'firstName'], is_scam: Annotated[bool, 'isScam'], is_fake: Annotated[bool, 'isFake'], is_premium: Annotated[bool, 'isPremium'], is_verified: Annotated[bool, 'isVerified'], is_support: Annotated[bool, 'isSupport'], added_to_attachment_menu: Annotated[bool, 'addedToAttachmentMenu'], *, last_name: Annotated[str | None, 'lastName'] = None, username: Annotated[str | None, 'username'] = None, also: Annotated[list[str] | None, 'also'] = None, photo: Annotated[ChatPhoto | None, 'photo'] = None, language_code: Annotated[str | None, 'languageCode'] = None)[source]

Bases: _Type

added_to_attachment_menu: Annotated[bool, 'addedToAttachmentMenu']
also: Annotated[list[str] | None, 'also']
async block() None[source]
color: Annotated[int, 'color']
first_name: Annotated[str, 'firstName']
property full_name: str
id: Annotated[int, 'id']
is_bot: Annotated[bool, 'isBot']
is_fake: Annotated[bool, 'isFake']
is_premium: Annotated[bool, 'isPremium']
is_scam: Annotated[bool, 'isScam']
is_support: Annotated[bool, 'isSupport']
is_verified: Annotated[bool, 'isVerified']
language_code: Annotated[str | None, 'languageCode']
last_name: Annotated[str | None, 'lastName']
property mention: str
photo: Annotated[ChatPhoto | None, 'photo']
async unblock() None[source]
username: Annotated[str | None, 'username']
class Venue(location: Annotated[Location, 'location'], title: Annotated[str, 'title'], address: Annotated[str, 'address'], *, foursquare_id: Annotated[str | None, 'foursquareId'] = None, foursquare_type: Annotated[str | None, 'foursquareType'] = None)[source]

Bases: _Type

address: Annotated[str, 'address']
foursquare_id: Annotated[str | None, 'foursquareId']
foursquare_type: Annotated[str | None, 'foursquareType']
location: Annotated[Location, 'location']
title: Annotated[str, 'title']
class Video(file_id: Annotated[str, 'fileId'], file_unique_id: Annotated[str, 'fileUniqueId'], width: Annotated[int, 'width'], height: Annotated[int, 'height'], duration: Annotated[int, 'duration'], thumbnails: Annotated[list[Thumbnail], 'thumbnails'], mime_type: Annotated[str, 'mimeType'], file_size: Annotated[int, 'fileSize'], *, file_name: Annotated[str | None, 'fileName'] = None)[source]

Bases: _Type

duration: Annotated[int, 'duration']
file_id: Annotated[str, 'fileId']
file_name: Annotated[str | None, 'fileName']
file_size: Annotated[int, 'fileSize']
file_unique_id: Annotated[str, 'fileUniqueId']
height: Annotated[int, 'height']
mime_type: Annotated[str, 'mimeType']
thumbnails: Annotated[list[Thumbnail], 'thumbnails']
width: Annotated[int, 'width']
class VideoChatActive(type: Annotated[Literal['active'], 'type'], recording: Annotated[bool, 'recording'], id: Annotated[str, 'id'], title: Annotated[str, 'title'], live_stream: Annotated[bool, 'liveStream'], participant_count: Annotated[int, 'participantCount'])[source]

Bases: _VideoChatCommon, _VideoChatNotEndedCommon

recording: Annotated[bool, 'recording']
type: Annotated[Literal['active'], 'type']
class VideoChatEnded(type: Annotated[Literal['ended'], 'type'], duration: Annotated[int, 'duration'], id: Annotated[str, 'id'])[source]

Bases: _VideoChatCommon

duration: Annotated[int, 'duration']
type: Annotated[Literal['ended'], 'type']
class VideoChatScheduled(type: Annotated[Literal['scheduled'], 'type'], scheduled_for: Annotated[datetime, 'scheduledFor'], id: Annotated[str, 'id'], title: Annotated[str, 'title'], live_stream: Annotated[bool, 'liveStream'], participant_count: Annotated[int, 'participantCount'])[source]

Bases: _VideoChatCommon, _VideoChatNotEndedCommon

scheduled_for: Annotated[datetime, 'scheduledFor']
type: Annotated[Literal['scheduled'], 'type']
class VideoNote(file_id: Annotated[str, 'fileId'], file_unique_id: Annotated[str, 'fileUniqueId'], length: Annotated[int, 'length'], duration: Annotated[int, 'duration'], thumbnails: Annotated[list[Thumbnail], 'thumbnails'], file_size: Annotated[int, 'fileSize'], *, file_name: Annotated[str | None, 'fileName'] = None)[source]

Bases: _Type

duration: Annotated[int, 'duration']
file_id: Annotated[str, 'fileId']
file_name: Annotated[str | None, 'fileName']
file_size: Annotated[int, 'fileSize']
file_unique_id: Annotated[str, 'fileUniqueId']
length: Annotated[int, 'length']
thumbnails: Annotated[list[Thumbnail], 'thumbnails']
class Voice(file_id: Annotated[str, 'fileId'], file_unique_id: Annotated[str, 'fileUniqueId'], duration: Annotated[int, 'duration'], mime_type: Annotated[str, 'mimeType'], file_size: Annotated[int, 'fileSize'])[source]

Bases: _Type

duration: Annotated[int, 'duration']
file_id: Annotated[str, 'fileId']
file_size: Annotated[int, 'fileSize']
file_unique_id: Annotated[str, 'fileUniqueId']
mime_type: Annotated[str, 'mimeType']