mtkruto

class Client(endpoint_url: str)[source]

Bases: object

async add_chat_member(chat_id: int | str | Literal['me'], user_id: int | str | Literal['me'], history_limit: int | None = None) FailedInvitation[source]
async add_chat_members(chat_id: int | str | Literal['me'], user_ids: List[int | str | Literal['me']]) List[FailedInvitation][source]
add_handler(handler: Handler[Any]) None[source]
async add_reaction(chat_id: int | str | Literal['me'], message_id: int, reaction: ReactionEmoji | ReactionCustom | ReactionPaid, *, big: bool | None = None, add_to_recents: bool | None = None) None[source]
async add_stories_to_highlights(chat_id: int | str | Literal['me'], story_ids: List[int]) None[source]
async add_story_to_highlights(chat_id: int | str | Literal['me'], story_id: int) None[source]
async answer_callback_query(id: str, *, text: str | None = None, alert: bool | None = None, url: str | None = None, cache_time: int | None = None) None[source]
async answer_inline_query(id: str, 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]
async answer_pre_checkout_query(pre_checkout_query_id: str, ok: bool, *, error: str | None = None) None[source]
async approve_join_request(chat_id: int | str | Literal['me'], user_id: int | str | Literal['me']) None[source]
async approve_join_requests(chat_id: int | str | Literal['me'], invite_link: str | None = None) None[source]
async ban_chat_member(chat_id: int | str | Literal['me'], member_id: int | str | Literal['me'], *, until_date: datetime | None = None, delete_messages: bool | None = None) None[source]
async block_user(user_id: int | str | Literal['me']) None[source]
async close_chat(chat_id: int | str | Literal['me']) None[source]
async create_channel(title: str, description: str | None = None, message_ttl: int | None = None) ChatPGroup[source]
async create_gorup(title: str, users: List[int | str | Literal['me']] | None = None, message_ttl: int | None = None) ChatPGroup[source]
async create_story(chat_id: int | str | Literal['me'], content: InputStoryContentPhoto | InputStoryContentVideo, *, interactive_areas: StoryInteractiveAreaLocation | StoryInteractiveAreaVenue | StoryInteractiveAreaReaction | StoryInteractiveAreaMessage | None = None, privacy: StoryPrivacyEveryone | StoryPrivacyConctacts | StoryPrivacyCloseFriends | StoryPrivacyOnly | None = None, active_for: int | None = None, highlight: bool | None = None, protect_content: bool | None = None, caption: str | None = None, caption_entities: List[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None = None, parse_mode: Literal['HTML'] | Literal['Markdown'] | None = None, file_name: str | None = None, mime_type: str | None = None, chunk_size: int | None = None) Story[source]
async create_supergroup(title: str, description: str | None = None, forum: bool | None = None, message_ttl: int | None = None) ChatPGroup[source]
async decline_join_request(chat_id: int | str | Literal['me'], user_id: int | str | Literal['me']) None[source]
async decline_join_requests(chat_id: int | str | Literal['me'], invite_link: str | None = None) None[source]
async delete_chat_member_messages(chat_id: int | str | Literal['me'], member_id: int | str | Literal['me']) None[source]
async delete_chat_photo(chat_id: int | str | Literal['me']) None[source]
async delete_chat_sticker_set(chat_id: int | str | Literal['me']) None[source]
async delete_message(chat_id: int | str | Literal['me'], message_id: int, *, only_for_me: bool | None = False) None[source]
async delete_messages(chat_id: int | str | Literal['me'], message_ids: List[int], *, only_for_me: bool | None = False) None[source]
async delete_scheduled_message(chat_id: int | str | Literal['me'], message_id: int) None[source]
async delete_scheduled_messages(chat_id: int | str | Literal['me'], message_ids: List[int]) None[source]
async delete_stories(chat_id: int | str | Literal['me'], story_ids: List[int]) None[source]
async delete_story(chat_id: int | str | Literal['me'], story_id: int) None[source]
async disable_join_requests(chat_id: int | str | Literal['me']) None[source]
async download(file_id: str, *, chunk_size: int | None = None, offset: int | None = None) AsyncGenerator[bytes, None][source]
async download_live_stream_chunk(id: str, channel_id: int, scale: int | float, timestamp: int | float, *, quality: Literal['low', 'medium', 'high'] | None = None) AsyncGenerator[bytes, None][source]
async edit_inline_message_live_location(inline_message_id: str, 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_inline_message_media(inline_message_id: str, media: InputMediaAnimation | InputMediaAudio | InputMediaDocument | InputMediaPhoto | InputMediaVideo, *, reply_markup: ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None = None) None[source]
async edit_inline_message_reply_markup(inline_message_id: str, *, reply_markup: ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None = None) None[source]
async edit_inline_message_text(inline_message_id: str, 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]
async edit_message_live_location(chat_id: int | str | Literal['me'], message_id: int, 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) MessageLocation[source]
async edit_message_media(chat_id: int | str | Literal['me'], message_id: int, media: InputMediaAnimation | InputMediaAudio | InputMediaDocument | InputMediaPhoto | InputMediaVideo, *, reply_markup: ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None = None) 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[source]
async edit_message_reply_markup(chat_id: int | str | Literal['me'], message_id: int, *, reply_markup: ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None = None) 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[source]
async edit_message_text(chat_id: int | str | Literal['me'], message_id: int, 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) MessageText[source]
async enable_join_requests(chat_id: int | str | Literal['me']) None[source]
async forward_message(from_chat: int | str | Literal['me'], to_chat: int | str | Literal['me'], message_id: int, *, drop_sender_name: bool | None = None, drop_caption: bool | None = None, disable_notifaction: bool | None = None, protect_content: bool | None = None, reply_quote: ReplyQuote | None = None, message_thread_id: int | None = None, send_as: int | str | Literal['me'] | None = None, business_connection_id: str | None = None, paid_broadcast: bool | None = None) 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[source]
async forward_messages(from_chat: int | str | Literal['me'], to_chat: int | str | Literal['me'], message_ids: List[int], *, drop_sender_name: bool | None = None, drop_caption: bool | None = None, disable_notifaction: bool | None = None, protect_content: bool | None = None, message_thread_id: int | None = None, send_as: int | str | Literal['me'] | None = None, business_connection_id: str | None = None, paid_broadcast: bool | None = None) List[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][source]
async get_business_connection(id: str) BusinessConnection[source]
async get_chat(chat_id: int | str | Literal['me']) ChatChannel | ChatSupergroup | ChatGroup | ChatPrivate[source]
async get_chat_administrators(chat_id: int | str | Literal['me']) List[ChatMemberCreator | ChatMemberAdministrator | ChatMemberMember | ChatMemberRestricted | ChatMemberLeft | ChatMemberBanned][source]
async get_chat_member(chat_id: int | str | Literal['me'], user_id: int | str | Literal['me']) ChatMemberCreator | ChatMemberAdministrator | ChatMemberMember | ChatMemberRestricted | ChatMemberLeft | ChatMemberBanned[source]
async get_chat_members(chat_id: int | str | Literal['me'], *, offset: int | None = None, limit: int | None = None) List[ChatMemberCreator | ChatMemberAdministrator | ChatMemberMember | ChatMemberRestricted | ChatMemberLeft | ChatMemberBanned][source]
async get_chats(*, from_chat_list: Literal['main', 'archived'] | None = None, after: ChatListItem | None = None, limit: int | None = None) List[ChatListItem][source]
async get_custom_emoji_stickers(id: str | List[str]) List[Sticker][source]
async get_history(chat_id: int | str | Literal['me'], *, after: 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 = None, limit: int | None = None) List[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][source]
async get_inactive_chats() List[InactiveChat][source]
async get_live_stream_channels(id: str) List[LiveStreamChannel][source]
async get_me() User[source]
async get_message(chat_id: int | str | Literal['me'], message_id: int) 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[source]
async get_messages(chat_id: int | str | Literal['me'], message_ids: List[int]) List[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][source]
async get_my_commands() List[BotCommand][source]
async get_my_description(*, language_code: str | None = None) str[source]
async get_my_name(*, language_code: str | None = None) str[source]
async get_my_short_description(*, language_code: str | None = None) str[source]
async get_network_statistics() NetworkStatistics[source]
async get_stories(chat_id: int | str | Literal['me'], story_ids: List[int]) List[Story][source]
async get_story(chat_id: int | str | Literal['me'], story_id: int) Story | None[source]
async get_updates(timeout: int | None = None) list[UpdateNewMessage | UpdateMessageEdited | UpdateMessageScheduled | UpdateMessagesDeleted | UpdateCallbackQuery | UpdateInlineQuery | UpdateChosenInlineResult | UpdateNewChat | UpdateEditedChat | UpdateDeletedChat | UpdateMessageInteractions | UpdateMessageReactionCount | UpdateMessageReactions | UpdateChatMember | UpdateMyChatMember | UpdateDeletedStory | UpdateNewStory | UpdateBusinessConnection | UpdateVideoChat | UpdatePreCheckoutQuery | UpdateJoinRequest][source]
async get_video_chat(id: str) VideoChatActive | VideoChatScheduled | VideoChatEnded[source]
async hide_username(id: int | str | Literal['me'], username: str) None[source]
async hide_usernames(id: int | str | Literal['me']) None[source]
async invoke(payload: Any) Any[source]
async join_chat(chat_id: int | str | Literal['me']) None[source]
async join_live_stream(id: str) None[source]
async join_video_chat(id: str, params: str, *, join_as: int | str | Literal['me'] | None = None, invite_hash: str | None = None, audio: bool | None = None, video: bool | None = None) str[source]
async kick_chat_member(chat_id: int | str | Literal['me'], member_id: int | str | Literal['me']) None[source]
async leave_chat(chat_id: int | str | Literal['me']) None[source]
async leave_video_chat(id: str) None[source]
on_business_connection() Callable[[Callable[[Client, BusinessConnection], Coroutine[Any, Any, None]]], None][source]
on_callback_query() Callable[[Callable[[Client, CallbackQuery], Coroutine[Any, Any, None]]], None][source]
on_chat_member() Callable[[Callable[[Client, ChatMemberUpdated], Coroutine[Any, Any, None]]], None][source]
on_chosen_inline_result() Callable[[Callable[[Client, ChosenInlineResult], Coroutine[Any, Any, None]]], None][source]
on_deleted_chat() Callable[[Callable[[Client, int], Coroutine[Any, Any, None]]], None][source]
on_deleted_messages() Callable[[Callable[[Client, UpdateMessagesDeleted], Coroutine[Any, Any, None]]], None][source]
on_deleted_story() Callable[[Callable[[Client, StoryReference], Coroutine[Any, Any, None]]], None][source]
on_edited_chat() Callable[[Callable[[Client, ChatListItem], Coroutine[Any, Any, None]]], None][source]
on_edited_message(filter_: Filter | None = None) Callable[[Callable[[Client, Any], Coroutine[Any, Any, None]]], None][source]
on_inline_query() Callable[[Callable[[Client, InlineQuery], Coroutine[Any, Any, None]]], None][source]
on_join_request() Callable[[Callable[[Client, JoinRequest], Coroutine[Any, Any, None]]], None][source]
on_message_interactions() Callable[[Callable[[Client, MessageInteractions], Coroutine[Any, Any, None]]], None][source]
on_message_reaction_count() Callable[[Callable[[Client, MessageReactionCount], Coroutine[Any, Any, None]]], None][source]
on_message_reactions() Callable[[Callable[[Client, MessageReactions], Coroutine[Any, Any, None]]], None][source]
on_my_chat_member() Callable[[Callable[[Client, ChatMemberUpdated], Coroutine[Any, Any, None]]], None][source]
on_new_chat() Callable[[Callable[[Client, ChatListItem], Coroutine[Any, Any, None]]], None][source]
on_new_message(filter_: Filter | None = None) Callable[[Callable[[Client, Any], Coroutine[Any, Any, None]]], None][source]
on_new_story() Callable[[Callable[[Client, Story], Coroutine[Any, Any, None]]], None][source]
on_pre_checkout_query() Callable[[Callable[[Client, PreCheckoutQuery], Coroutine[Any, Any, None]]], None][source]
on_update() Callable[[Callable[[Client, UpdateNewMessage | UpdateMessageEdited | UpdateMessageScheduled | UpdateMessagesDeleted | UpdateCallbackQuery | UpdateInlineQuery | UpdateChosenInlineResult | UpdateNewChat | UpdateEditedChat | UpdateDeletedChat | UpdateMessageInteractions | UpdateMessageReactionCount | UpdateMessageReactions | UpdateChatMember | UpdateMyChatMember | UpdateDeletedStory | UpdateNewStory | UpdateBusinessConnection | UpdateVideoChat | UpdatePreCheckoutQuery | UpdateJoinRequest], Coroutine[Any, Any, None]]], None][source]
on_video_chat() Callable[[Callable[[Client, VideoChatActive | VideoChatScheduled | VideoChatEnded], Coroutine[Any, Any, None]]], None][source]
async open_chat(chat_id: int | str | Literal['me']) None[source]
async pin_message(chat_id: int | str | Literal['me'], message_id: int, *, both_sides: bool | None = None, disable_notifaction: bool | None = None) None[source]
async read_messages(chat_id: int | str | Literal['me'], until_chat_id: int) None[source]
async refund_star_payment(user_id: int | str | Literal['me'], telegram_payment_charge_id: str) None[source]
async remove_reaction(chat_id: int | str | Literal['me'], message_id: int, reaction: ReactionEmoji | ReactionCustom | ReactionPaid) None[source]
async remove_stories_from_highlights(chat_id: int | str | Literal['me'], story_ids: List[int]) None[source]
async remove_story_from_highlights(chat_id: int | str | Literal['me'], story_id: int) None[source]
async reorder_usernames(id: int | str | Literal['me'], order: List[str]) bool[source]
run() None[source]
async schedule_video_chat(chat_id: int | str | Literal['me'], start_at: datetime, *, title: str | None = None, live_stream: bool | None = None) VideoChatScheduled[source]
async search_messages(chat_id: int | str | Literal['me'], *, query: str | None = '', from_user: int | str | Literal['me'] | None = None, filter: Literal['empty'] | Literal['animations'] | Literal['audios'] | Literal['documents'] | Literal['photos'] | Literal['videos'] | Literal['voiceMessages'] | Literal['photosAndVideos'] | Literal['links'] | Literal['chatPhotos'] | Literal['videoNotes'] | Literal['voiceMessagesAndVideoNotes'] | Literal['mentions'] | Literal['pinned'] | None = None, after: int | None = None, thread_id: int | None = None, limit: int | None = 100) List[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][source]
async send_animation(chat_id: int | str | Literal['me'], animation: str | bytes, *, duration: int | float | None = None, width: int | float | None = None, height: int | float | None = None, caption: str | None = None, caption_entities: List[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None = None, parse_mode: Literal['HTML'] | Literal['Markdown'] | None = None, thumbnail: str | bytes | None = None, has_spoiler: bool | None = None, file_name: str | None = None, mime_type: str | None = None, chunk_size: int | None = None, disable_notifaction: bool | None = None, protect_content: bool | None = None, reply_to: ReplyToMessage | ReplyToStory | None = None, message_thread_id: int | None = None, send_as: int | str | Literal['me'] | None = None, reply_markup: ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None = None, message_effect_id: int | None = None, business_connection_id: str | None = None, send_at: datetime | None = None, paid_broadcast: bool | None = None) MessageAnimation[source]
async send_audio(chat_id: int | str | Literal['me'], audio: str | bytes, *, duration: int | float | None = None, performer: str | None = None, title: str | None = None, caption: str | None = None, caption_entities: List[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None = None, parse_mode: Literal['HTML'] | Literal['Markdown'] | None = None, thumbnail: str | bytes | None = None, file_name: str | None = None, mime_type: str | None = None, chunk_size: int | None = None, disable_notifaction: bool | None = None, protect_content: bool | None = None, reply_to: ReplyToMessage | ReplyToStory | None = None, message_thread_id: int | None = None, send_as: int | str | Literal['me'] | None = None, reply_markup: ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None = None, message_effect_id: int | None = None, business_connection_id: str | None = None, send_at: datetime | None = None, paid_broadcast: bool | None = None) MessageAudio[source]
async send_callback_query(chat_id: int | str | Literal['me'], message_id: int, question: CallbackQueryQuestionGame | CallbackQueryQuestionPassword | CallbackQueryQuestionButton) CallbackQueryAnswer[source]
async send_chat_action(chat_id: int | str | Literal['me'], action: Literal['type', 'uploadPhoto', 'recordVideo', 'uploadVideo', 'recordVoice', 'uploadAudio', 'uploadDocument', 'chooseSticker', 'findLocation', 'recordVideoNote', 'uploadVideoNote'], message_thread_id: int | None = None) None[source]
async send_contact(chat_id: int | str | Literal['me'], first_name: str, number: str, *, last_name: str | None = None, vcard: str | None = None, disable_notifaction: bool | None = None, protect_content: bool | None = None, reply_to: ReplyToMessage | ReplyToStory | None = None, message_thread_id: int | None = None, send_as: int | str | Literal['me'] | None = None, reply_markup: ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None = None, message_effect_id: int | None = None, business_connection_id: str | None = None, send_at: datetime | None = None, paid_broadcast: bool | None = None) MessageContact[source]
async send_dice(chat_id: int | str | Literal['me'], emoji: Literal['🎲', '🎯', '🏀', '⚽', '🎳', '🎰'], *, disable_notifaction: bool | None = None, protect_content: bool | None = None, reply_to: ReplyToMessage | ReplyToStory | None = None, message_thread_id: int | None = None, send_as: int | str | Literal['me'] | None = None, reply_markup: ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None = None, message_effect_id: int | None = None, business_connection_id: str | None = None, send_at: datetime | None = None, paid_broadcast: bool | None = None) MessageDice[source]
async send_document(chat_id: int | str | Literal['me'], document: str | bytes, *, caption: str | None = None, caption_entities: List[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None = None, parse_mode: Literal['HTML'] | Literal['Markdown'] | None = None, thumbnail: str | bytes | None = None, file_name: str | None = None, mime_type: str | None = None, chunk_size: int | None = None, disable_notifaction: bool | None = None, protect_content: bool | None = None, reply_to: ReplyToMessage | ReplyToStory | None = None, message_thread_id: int | None = None, send_as: int | str | Literal['me'] | None = None, reply_markup: ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None = None, message_effect_id: int | None = None, business_connection_id: str | None = None, send_at: datetime | None = None, paid_broadcast: bool | None = None) MessageDocument[source]
async send_inline_query(user_id: int | str | Literal['me'], chat_id: int | str | Literal['me'], *, query: str | None = None, offset: str | None = None) InlineQueryAnswer[source]
async send_invoice(chat_id: int | str | Literal['me'], title: str, description: str, payload: str, currency: str, prices: List[PriceTag], *, provider_token: str | None = None, max_tip_amount: int | None = None, suggested_tip_amounts: List[int] | None = None, start_parameter: str | None = None, provider_data: str | None = None, photo_url: str | None = None, photo_size: int | None = None, photo_width: int | None = None, photo_height: int | None = None, need_name: bool | None = None, need_phone_number: bool | None = None, need_email: bool | None = None, need_shipping_address: bool | None = None, send_phone_number_to_provider: bool | None = None, send_email_to_provider: bool | None = None, flexible: bool | None = None, disable_notifaction: bool | None = None, protect_content: bool | None = None, reply_to: ReplyToMessage | ReplyToStory | None = None, message_thread_id: int | None = None, send_as: int | str | Literal['me'] | None = None, reply_markup: ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None = None, message_effect_id: int | None = None, business_connection_id: str | None = None) MessageInvoice[source]
async send_location(chat_id: int | str | Literal['me'], latitude: int | float, longitude: int | float, *, horizontal_accuracy: int | float | None = None, live_period: int | float | None = None, heading: int | float | None = None, proximity_alert_radius: int | float | None = None, disable_notifaction: bool | None = None, protect_content: bool | None = None, reply_to: ReplyToMessage | ReplyToStory | None = None, message_thread_id: int | None = None, send_as: int | str | Literal['me'] | None = None, reply_markup: ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None = None, message_effect_id: int | None = None, business_connection_id: str | None = None, send_at: datetime | None = None, paid_broadcast: bool | None = None) MessageLocation[source]
async send_media_group(chat_id: int | str | Literal['me'], media: List[InputMediaAnimation | InputMediaAudio | InputMediaDocument | InputMediaPhoto | InputMediaVideo], *, disable_notifaction: bool | None = None, protect_content: bool | None = None, reply_to: ReplyToMessage | ReplyToStory | None = None, message_thread_id: int | None = None, send_as: int | str | Literal['me'] | None = None, message_effect_id: int | None = None, business_connection_id: str | None = None, send_at: datetime | None = None, paid_broadcast: bool | None = None) List[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][source]
async send_message(chat_id: int | str | Literal['me'], 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, disable_notification: bool | None = None, protect_content: bool | None = None, reply_to: ReplyToMessage | ReplyToStory | None = None, message_thread_id: int | None = None, send_as: int | str | Literal['me'] | None = None, reply_markup: ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None = None, message_effect_id: int | None = None, business_connection_id: str | None = None, send_at: datetime | None = None, paid_broadcast: bool | None = None) MessageText[source]
async send_photo(chat_id: int | str | Literal['me'], photo: str | bytes, *, self_destruct: Literal['afterOpen'] | int | None = None, caption: str | None = None, caption_entities: List[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None = None, parse_mode: Literal['HTML'] | Literal['Markdown'] | None = None, has_spoiler: bool | None = None, file_name: str | None = None, mime_type: str | None = None, chunk_size: int | None = None, disable_notifaction: bool | None = None, protect_content: bool | None = None, reply_to: ReplyToMessage | ReplyToStory | None = None, message_thread_id: int | None = None, send_as: int | str | Literal['me'] | None = None, reply_markup: ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None = None, message_effect_id: int | None = None, business_connection_id: str | None = None, star_count: int | None = None, send_at: datetime | None = None, paid_broadcast: bool | None = None) MessagePhoto[source]
async send_poll(chat_id: int | str | Literal['me'], question: str, options: List[str], *, question_entities: List[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None = None, question_parse_mode: Literal['HTML'] | Literal['Markdown'] | None = None, option_parse_mode: Literal['HTML'] | Literal['Markdown'] | None = None, is_anonymous: bool | None = None, type: Literal['quiz', 'regular'] | None = None, allow_multiple_answers: bool | None = None, correct_option_index: int | None = None, explanation: str | None = None, explanation_parse_mode: Literal['HTML'] | Literal['Markdown'] | None = None, explanation_entities: List[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None = None, open_period: int | None = None, close_date: datetime | None = None, is_closed: bool | None = None, disable_notifaction: bool | None = None, protect_content: bool | None = None, reply_to: ReplyToMessage | ReplyToStory | None = None, message_thread_id: int | None = None, send_as: int | str | Literal['me'] | None = None, reply_markup: ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None = None, message_effect_id: int | None = None, business_connection_id: str | None = None, send_at: datetime | None = None, paid_broadcast: bool | None = None) MessagePoll[source]
async send_scheduled_message(chat_id: int | str | Literal['me'], message_id: int) 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[source]
async send_scheduled_messages(chat_id: int | str | Literal['me'], message_ids: List[int]) List[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][source]
async send_sticker(chat_id: int | str | Literal['me'], sticker: str | bytes, *, emoji: str | None = None, file_name: str | None = None, mime_type: str | None = None, chunk_size: int | None = None, disable_notifaction: bool | None = None, protect_content: bool | None = None, reply_to: ReplyToMessage | ReplyToStory | None = None, message_thread_id: int | None = None, send_as: int | str | Literal['me'] | None = None, reply_markup: ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None = None, message_effect_id: int | None = None, business_connection_id: str | None = None, send_at: datetime | None = None, paid_broadcast: bool | None = None) MessageSticker[source]
async send_venue(chat_id: int | str | Literal['me'], latitude: int | float, longitude: int | float, title: str, address: str, *, foursquare_id: str | None = None, foursquare_type: str | None = None, disable_notifaction: bool | None = None, protect_content: bool | None = None, reply_to: ReplyToMessage | ReplyToStory | None = None, message_thread_id: int | None = None, send_as: int | str | Literal['me'] | None = None, reply_markup: ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None = None, message_effect_id: int | None = None, business_connection_id: str | None = None, send_at: datetime | None = None, paid_broadcast: bool | None = None) MessageVenue[source]
async send_video(chat_id: int | str | Literal['me'], video: str | bytes, *, duration: int | float | None = None, width: int | float | None = None, height: int | float | None = None, supports_streaming: bool | None = None, self_destruct: Literal['afterOpen'] | int | None = None, caption: str | None = None, caption_entities: List[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None = None, parse_mode: Literal['HTML'] | Literal['Markdown'] | None = None, thumbnail: str | bytes | None = None, has_spoiler: bool | None = None, file_name: str | None = None, mime_type: str | None = None, chunk_size: int | None = None, disable_notifaction: bool | None = None, protect_content: bool | None = None, reply_to: ReplyToMessage | ReplyToStory | None = None, message_thread_id: int | None = None, send_as: int | str | Literal['me'] | None = None, reply_markup: ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None = None, message_effect_id: int | None = None, business_connection_id: str | None = None, star_count: int | None = None, send_at: datetime | None = None, paid_broadcast: bool | None = None) MessageVideo[source]
async send_video_note(chat_id: int | str | Literal['me'], video_note: str | bytes, *, duration: int | float | None = None, length: int | float | None = None, caption: str | None = None, caption_entities: List[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None = None, parse_mode: Literal['HTML'] | Literal['Markdown'] | None = None, thumbnail: str | bytes | None = None, file_name: str | None = None, mime_type: str | None = None, chunk_size: int | None = None, disable_notifaction: bool | None = None, protect_content: bool | None = None, reply_to: ReplyToMessage | ReplyToStory | None = None, message_thread_id: int | None = None, send_as: int | str | Literal['me'] | None = None, reply_markup: ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None = None, message_effect_id: int | None = None, business_connection_id: str | None = None, send_at: datetime | None = None, paid_broadcast: bool | None = None) MessageVideoNote[source]
async send_voice(chat_id: int | str | Literal['me'], voice: str | bytes, *, duration: int | float | None = None, caption: str | None = None, caption_entities: List[MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji] | None = None, parse_mode: Literal['HTML'] | Literal['Markdown'] | None = None, thumbnail: str | bytes | None = None, file_name: str | None = None, mime_type: str | None = None, chunk_size: int | None = None, disable_notifaction: bool | None = None, protect_content: bool | None = None, reply_to: ReplyToMessage | ReplyToStory | None = None, message_thread_id: int | None = None, send_as: int | str | Literal['me'] | None = None, reply_markup: ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None = None, message_effect_id: int | None = None, business_connection_id: str | None = None, send_at: datetime | None = None, paid_broadcast: bool | None = None) MessageVoice[source]
async set_available_reactions(chat_id: int | str | Literal['me'], available_reactions: Literal['none', 'all'] | List[ReactionEmoji | ReactionCustom | ReactionPaid]) None[source]
async set_boosts_required_to_circumvent_restrictions(chat_id: int | str | Literal['me'], boosts: int) None[source]
async set_chat_member_rights(chat_id: int | str | Literal['me'], member_id: int | str | Literal['me'], *, rights: ChatMemberRights | None = None, until_date: datetime | None = None) None[source]
async set_chat_photo(chat_id: int | str | Literal['me'], photo: str | bytes, *, file_name: str | None = None, mime_type: str | None = None, chunk_size: int | None = None) None[source]
async set_chat_sticker_set(chat_id: int | str | Literal['me'], set_name: str) None[source]
async set_message_ttl(chat_id: int | str | Literal['me'], message_ttl: int) None[source]
async set_my_commands(commands: List[BotCommand], *, language_code: str | None = None, scope: BotCommandScopeDefault | BotCommandScopeAllPrivateChats | BotCommandScopeAllGroupChats | BotCommandScopeAllChatAdministrators | BotCommandScopeChat | BotCommandScopeChatAdministrators | BotCommandScopeChatMember | None = None) None[source]
async set_my_description(*, description: str | None = None, language_code: str | None = None) None[source]
async set_my_name(*, name: str | None = None, language_code: str | None = None) None[source]
async set_my_short_description(*, short_description: str | None = None, language_code: str | None = None) None[source]
async set_online(online: bool) None[source]
async set_reactions(chat_id: int | str | Literal['me'], message_id: int, reactions: List[ReactionEmoji | ReactionCustom | ReactionPaid], *, big: bool | None = None) None[source]
async show_username(id: int | str | Literal['me'], username: str) None[source]
async start() None[source]
async start_bot(bot_id: int | str | Literal['me'], deep_link: str | None = None, chat_id: int | str | Literal['me'] | None = None) 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[source]
async start_video_chat(chat_id: int | str | Literal['me'], *, title: str | None = None, live_stream: bool | None = None) VideoChatActive[source]
async stop_poll(chat_id: int | str | Literal['me'], message_id: int, *, reply_markup: ReplyMarkupInlineKeyboard | ReplyMarkupKeyboard | ReplyMarkupRemoveKeyboard | ReplyMarkupForceReply | None = None) Poll[source]
async unban_chat_member(chat_id: int | str | Literal['me'], member_id: int | str | Literal['me']) None[source]
async unblock_user(user_id: int | str | Literal['me']) None[source]
async unpin_message(chat_id: int | str | Literal['me'], message_id: int) None[source]
async unpin_messages(chat_id: int | str | Literal['me']) None[source]