Welcome to Python Telegram Bot’s documentation!
Guides and tutorials
If you’re just starting out with the library, we recommend following our “Your first Bot” tutorial that you can find on our wiki. On our wiki you will also find guides like how to use handlers, webhooks, emoji, proxies and much more.
Examples
A great way to learn is by looking at examples. Ours can be found in our examples folder on Github.
Reference
Below you can find a reference of all the classes and methods in python-telegram-bot. Apart from the telegram.ext package the objects should reflect the types defined in the official Telegram Bot API documentation.
- telegram.ext package
- telegram.ext.ExtBot
- telegram.ext.Updater
- telegram.ext.Dispatcher
- telegram.ext.DispatcherHandlerStop
- telegram.ext.CallbackContext
- telegram.ext.Job
- telegram.ext.JobQueue
- telegram.ext.MessageQueue
- telegram.ext.DelayQueue
- telegram.ext.ContextTypes
- telegram.ext.Defaults
- Handlers
- telegram.ext.Handler
- telegram.ext.CallbackQueryHandler
- telegram.ext.ChatJoinRequestHandler
- telegram.ext.ChatMemberHandler
- telegram.ext.ChosenInlineResultHandler
- telegram.ext.CommandHandler
- telegram.ext.ConversationHandler
- telegram.ext.InlineQueryHandler
- telegram.ext.MessageHandler
- telegram.ext.filters Module
- telegram.ext.PollAnswerHandler
- telegram.ext.PollHandler
- telegram.ext.PreCheckoutQueryHandler
- telegram.ext.PrefixHandler
- telegram.ext.RegexHandler
- telegram.ext.ShippingQueryHandler
- telegram.ext.StringCommandHandler
- telegram.ext.StringRegexHandler
- telegram.ext.TypeHandler
- Persistence
- Arbitrary Callback Data
- utils
- telegram package
- telegram.Animation
- telegram.Audio
- telegram.Bot
Bot
Bot.addStickerToSet()
Bot.add_sticker_to_set()
Bot.answerCallbackQuery()
Bot.answerInlineQuery()
Bot.answerPreCheckoutQuery()
Bot.answerShippingQuery()
Bot.answerWebAppQuery()
Bot.answer_callback_query()
Bot.answer_inline_query()
Bot.answer_pre_checkout_query()
Bot.answer_shipping_query()
Bot.answer_web_app_query()
Bot.approveChatJoinRequest()
Bot.approve_chat_join_request()
Bot.banChatMember()
Bot.banChatSenderChat()
Bot.ban_chat_member()
Bot.ban_chat_sender_chat()
Bot.bot
Bot.can_join_groups
Bot.can_read_all_group_messages
Bot.close()
Bot.closeForumTopic()
Bot.close_forum_topic()
Bot.commands
Bot.copyMessage()
Bot.copy_message()
Bot.createChatInviteLink()
Bot.createForumTopic()
Bot.createInvoiceLink()
Bot.createNewStickerSet()
Bot.create_chat_invite_link()
Bot.create_forum_topic()
Bot.create_invoice_link()
Bot.create_new_sticker_set()
Bot.declineChatJoinRequest()
Bot.decline_chat_join_request()
Bot.deleteChatPhoto()
Bot.deleteChatStickerSet()
Bot.deleteForumTopic()
Bot.deleteMessage()
Bot.deleteMyCommands()
Bot.deleteStickerFromSet()
Bot.deleteWebhook()
Bot.delete_chat_photo()
Bot.delete_chat_sticker_set()
Bot.delete_forum_topic()
Bot.delete_message()
Bot.delete_my_commands()
Bot.delete_sticker_from_set()
Bot.delete_webhook()
Bot.editChatInviteLink()
Bot.editForumTopic()
Bot.editMessageCaption()
Bot.editMessageLiveLocation()
Bot.editMessageMedia()
Bot.editMessageReplyMarkup()
Bot.editMessageText()
Bot.edit_chat_invite_link()
Bot.edit_forum_topic()
Bot.edit_message_caption()
Bot.edit_message_live_location()
Bot.edit_message_media()
Bot.edit_message_reply_markup()
Bot.edit_message_text()
Bot.exportChatInviteLink()
Bot.export_chat_invite_link()
Bot.first_name
Bot.forwardMessage()
Bot.forward_message()
Bot.getChat()
Bot.getChatAdministrators()
Bot.getChatMember()
Bot.getChatMemberCount()
Bot.getChatMembersCount()
Bot.getChatMenuButton()
Bot.getCustomEmojiStickers()
Bot.getFile()
Bot.getForumTopicIconStickers()
Bot.getGameHighScores()
Bot.getMe()
Bot.getMyCommands()
Bot.getMyDefaultAdministratorRights()
Bot.getStickerSet()
Bot.getUpdates()
Bot.getUserProfilePhotos()
Bot.getWebhookInfo()
Bot.get_chat()
Bot.get_chat_administrators()
Bot.get_chat_member()
Bot.get_chat_member_count()
Bot.get_chat_members_count()
Bot.get_chat_menu_button()
Bot.get_custom_emoji_stickers()
Bot.get_file()
Bot.get_forum_topic_icon_stickers()
Bot.get_game_high_scores()
Bot.get_me()
Bot.get_my_commands()
Bot.get_my_default_administrator_rights()
Bot.get_sticker_set()
Bot.get_updates()
Bot.get_user_profile_photos()
Bot.get_webhook_info()
Bot.id
Bot.kickChatMember()
Bot.kick_chat_member()
Bot.last_name
Bot.leaveChat()
Bot.leave_chat()
Bot.link
Bot.logOut()
Bot.log_out()
Bot.name
Bot.pinChatMessage()
Bot.pin_chat_message()
Bot.promoteChatMember()
Bot.promote_chat_member()
Bot.reopenForumTopic()
Bot.reopen_forum_topic()
Bot.restrictChatMember()
Bot.restrict_chat_member()
Bot.revokeChatInviteLink()
Bot.revoke_chat_invite_link()
Bot.sendAnimation()
Bot.sendAudio()
Bot.sendChatAction()
Bot.sendContact()
Bot.sendDice()
Bot.sendDocument()
Bot.sendGame()
Bot.sendInvoice()
Bot.sendLocation()
Bot.sendMediaGroup()
Bot.sendMessage()
Bot.sendPhoto()
Bot.sendPoll()
Bot.sendSticker()
Bot.sendVenue()
Bot.sendVideo()
Bot.sendVideoNote()
Bot.sendVoice()
Bot.send_animation()
Bot.send_audio()
Bot.send_chat_action()
Bot.send_contact()
Bot.send_dice()
Bot.send_document()
Bot.send_game()
Bot.send_invoice()
Bot.send_location()
Bot.send_media_group()
Bot.send_message()
Bot.send_photo()
Bot.send_poll()
Bot.send_sticker()
Bot.send_venue()
Bot.send_video()
Bot.send_video_note()
Bot.send_voice()
Bot.setChatAdministratorCustomTitle()
Bot.setChatDescription()
Bot.setChatMenuButton()
Bot.setChatPermissions()
Bot.setChatPhoto()
Bot.setChatStickerSet()
Bot.setChatTitle()
Bot.setGameScore()
Bot.setMyCommands()
Bot.setMyDefaultAdministratorRights()
Bot.setPassportDataErrors()
Bot.setStickerPositionInSet()
Bot.setStickerSetThumb()
Bot.setWebhook()
Bot.set_chat_administrator_custom_title()
Bot.set_chat_description()
Bot.set_chat_menu_button()
Bot.set_chat_permissions()
Bot.set_chat_photo()
Bot.set_chat_sticker_set()
Bot.set_chat_title()
Bot.set_game_score()
Bot.set_my_commands()
Bot.set_my_default_administrator_rights()
Bot.set_passport_data_errors()
Bot.set_sticker_position_in_set()
Bot.set_sticker_set_thumb()
Bot.set_webhook()
Bot.stopMessageLiveLocation()
Bot.stopPoll()
Bot.stop_message_live_location()
Bot.stop_poll()
Bot.supports_inline_queries
Bot.to_dict()
Bot.unbanChatMember()
Bot.unbanChatSenderChat()
Bot.unban_chat_member()
Bot.unban_chat_sender_chat()
Bot.unpinAllChatMessages()
Bot.unpinAllForumTopicMessages()
Bot.unpinChatMessage()
Bot.unpin_all_chat_messages()
Bot.unpin_all_forum_topic_messages()
Bot.unpin_chat_message()
Bot.uploadStickerFile()
Bot.upload_sticker_file()
Bot.username
- telegram.BotCommand
- telegram.BotCommandScope
- telegram.BotCommandScopeDefault
- telegram.BotCommandScopeAllPrivateChats
- telegram.BotCommandScopeAllGroupChats
- telegram.BotCommandScopeAllChatAdministrators
- telegram.BotCommandScopeChat
- telegram.BotCommandScopeChatAdministrators
- telegram.BotCommandScopeChatMember
- telegram.CallbackQuery
CallbackQuery
CallbackQuery.id
CallbackQuery.from_user
CallbackQuery.chat_instance
CallbackQuery.message
CallbackQuery.data
CallbackQuery.inline_message_id
CallbackQuery.game_short_name
CallbackQuery.bot
CallbackQuery.MAX_ANSWER_TEXT_LENGTH
CallbackQuery.answer()
CallbackQuery.copy_message()
CallbackQuery.de_json()
CallbackQuery.delete_message()
CallbackQuery.edit_message_caption()
CallbackQuery.edit_message_live_location()
CallbackQuery.edit_message_media()
CallbackQuery.edit_message_reply_markup()
CallbackQuery.edit_message_text()
CallbackQuery.get_game_high_scores()
CallbackQuery.pin_message()
CallbackQuery.set_game_score()
CallbackQuery.stop_message_live_location()
CallbackQuery.unpin_message()
- telegram.Chat
Chat
Chat.id
Chat.type
Chat.title
Chat.username
Chat.first_name
Chat.last_name
Chat.photo
Chat.bio
Chat.has_private_forwards
Chat.description
Chat.invite_link
Chat.pinned_message
Chat.permissions
Chat.slow_mode_delay
Chat.message_auto_delete_time
Chat.has_protected_content
Chat.sticker_set_name
Chat.can_set_sticker_set
Chat.linked_chat_id
Chat.location
Chat.join_to_send_messages
Chat.join_by_request
Chat.has_restricted_voice_and_video_messages
Chat.is_forum
Chat.active_usernames
Chat.emoji_status_custom_emoji_id
Chat.CHANNEL
Chat.GROUP
Chat.PRIVATE
Chat.SENDER
Chat.SUPERGROUP
Chat.approve_join_request()
Chat.ban_chat()
Chat.ban_member()
Chat.ban_sender_chat()
Chat.close_forum_topic()
Chat.copy_message()
Chat.create_forum_topic()
Chat.create_invite_link()
Chat.de_json()
Chat.decline_join_request()
Chat.delete_forum_topic()
Chat.edit_forum_topic()
Chat.edit_invite_link()
Chat.export_invite_link()
Chat.full_name
Chat.get_administrators()
Chat.get_member()
Chat.get_member_count()
Chat.get_members_count()
Chat.get_menu_button()
Chat.kick_member()
Chat.leave()
Chat.link
Chat.pin_message()
Chat.promote_member()
Chat.reopen_forum_topic()
Chat.restrict_member()
Chat.revoke_invite_link()
Chat.send_action()
Chat.send_animation()
Chat.send_audio()
Chat.send_chat_action()
Chat.send_contact()
Chat.send_copy()
Chat.send_dice()
Chat.send_document()
Chat.send_game()
Chat.send_invoice()
Chat.send_location()
Chat.send_media_group()
Chat.send_message()
Chat.send_photo()
Chat.send_poll()
Chat.send_sticker()
Chat.send_venue()
Chat.send_video()
Chat.send_video_note()
Chat.send_voice()
Chat.set_administrator_custom_title()
Chat.set_menu_button()
Chat.set_permissions()
Chat.unban_chat()
Chat.unban_member()
Chat.unban_sender_chat()
Chat.unpin_all_forum_topic_messages()
Chat.unpin_all_messages()
Chat.unpin_message()
- telegram.ChatAdministratorRights
ChatAdministratorRights
ChatAdministratorRights.is_anonymous
ChatAdministratorRights.can_manage_chat
ChatAdministratorRights.can_delete_messages
ChatAdministratorRights.can_manage_video_chats
ChatAdministratorRights.can_restrict_members
ChatAdministratorRights.can_promote_members
ChatAdministratorRights.can_change_info
ChatAdministratorRights.can_invite_users
ChatAdministratorRights.can_post_messages
ChatAdministratorRights.can_edit_messages
ChatAdministratorRights.can_pin_messages
ChatAdministratorRights.can_manage_topics
ChatAdministratorRights.all_rights()
ChatAdministratorRights.no_rights()
- telegram.ChatAction
ChatAction
ChatAction.CHOOSE_STICKER
ChatAction.FIND_LOCATION
ChatAction.RECORD_AUDIO
ChatAction.RECORD_VIDEO
ChatAction.RECORD_VIDEO_NOTE
ChatAction.RECORD_VOICE
ChatAction.TYPING
ChatAction.UPLOAD_AUDIO
ChatAction.UPLOAD_DOCUMENT
ChatAction.UPLOAD_PHOTO
ChatAction.UPLOAD_VIDEO
ChatAction.UPLOAD_VIDEO_NOTE
ChatAction.UPLOAD_VOICE
- telegram.ChatInviteLink
ChatInviteLink
ChatInviteLink.invite_link
ChatInviteLink.creator
ChatInviteLink.is_primary
ChatInviteLink.is_revoked
ChatInviteLink.expire_date
ChatInviteLink.member_limit
ChatInviteLink.name
ChatInviteLink.creates_join_request
ChatInviteLink.pending_join_request_count
ChatInviteLink.de_json()
ChatInviteLink.to_dict()
- telegram.ChatJoinRequest
- telegram.ChatLocation
- telegram.ChatMember
ChatMember
ChatMember.user
ChatMember.status
ChatMember.custom_title
ChatMember.is_anonymous
ChatMember.until_date
ChatMember.can_be_edited
ChatMember.can_manage_chat
ChatMember.can_manage_voice_chats
ChatMember.can_change_info
ChatMember.can_post_messages
ChatMember.can_edit_messages
ChatMember.can_delete_messages
ChatMember.can_invite_users
ChatMember.can_restrict_members
ChatMember.can_pin_messages
ChatMember.can_promote_members
ChatMember.is_member
ChatMember.can_send_messages
ChatMember.can_send_media_messages
ChatMember.can_send_polls
ChatMember.can_send_other_messages
ChatMember.can_add_web_page_previews
ChatMember.ADMINISTRATOR
ChatMember.CREATOR
ChatMember.KICKED
ChatMember.LEFT
ChatMember.MEMBER
ChatMember.RESTRICTED
ChatMember.de_json()
ChatMember.to_dict()
- telegram.ChatMemberOwner
- telegram.ChatMemberAdministrator
ChatMemberAdministrator
ChatMemberAdministrator.status
ChatMemberAdministrator.user
ChatMemberAdministrator.can_be_edited
ChatMemberAdministrator.custom_title
ChatMemberAdministrator.is_anonymous
ChatMemberAdministrator.can_manage_chat
ChatMemberAdministrator.can_post_messages
ChatMemberAdministrator.can_edit_messages
ChatMemberAdministrator.can_delete_messages
ChatMemberAdministrator.can_manage_voice_chats
ChatMemberAdministrator.can_manage_video_chats
ChatMemberAdministrator.can_restrict_members
ChatMemberAdministrator.can_promote_members
ChatMemberAdministrator.can_change_info
ChatMemberAdministrator.can_invite_users
ChatMemberAdministrator.can_pin_messages
ChatMemberAdministrator.can_manage_topics
- telegram.ChatMemberMember
- telegram.ChatMemberRestricted
ChatMemberRestricted
ChatMemberRestricted.status
ChatMemberRestricted.user
ChatMemberRestricted.is_member
ChatMemberRestricted.can_change_info
ChatMemberRestricted.can_invite_users
ChatMemberRestricted.can_pin_messages
ChatMemberRestricted.can_send_messages
ChatMemberRestricted.can_send_media_messages
ChatMemberRestricted.can_send_polls
ChatMemberRestricted.can_send_other_messages
ChatMemberRestricted.can_add_web_page_previews
ChatMemberRestricted.until_date
ChatMemberRestricted.can_manage_topics
- telegram.ChatMemberLeft
- telegram.ChatMemberBanned
- telegram.ChatMemberUpdated
- telegram.ChatPermissions
ChatPermissions
ChatPermissions.can_send_messages
ChatPermissions.can_send_media_messages
ChatPermissions.can_send_polls
ChatPermissions.can_send_other_messages
ChatPermissions.can_add_web_page_previews
ChatPermissions.can_change_info
ChatPermissions.can_invite_users
ChatPermissions.can_pin_messages
ChatPermissions.can_manage_topics
- telegram.ChatPhoto
- telegram.constants Module
BOT_API_VERSION
MAX_MESSAGE_LENGTH
MAX_CAPTION_LENGTH
SUPPORTED_WEBHOOK_PORTS
MAX_FILESIZE_DOWNLOAD
MAX_FILESIZE_UPLOAD
MAX_PHOTOSIZE_UPLOAD
MAX_MESSAGES_PER_SECOND_PER_CHAT
MAX_MESSAGES_PER_SECOND
MAX_MESSAGES_PER_MINUTE_PER_GROUP
MAX_INLINE_QUERY_RESULTS
MAX_ANSWER_CALLBACK_QUERY_TEXT_LENGTH
MAX_MESSAGE_ENTITIES
ANONYMOUS_ADMIN_ID
SERVICE_CHAT_ID
FAKE_CHANNEL_ID
CHAT_PRIVATE
CHAT_GROUP
CHAT_SUPERGROUP
CHAT_CHANNEL
CHAT_SENDER
CHATACTION_FIND_LOCATION
CHATACTION_RECORD_AUDIO
CHATACTION_RECORD_VOICE
CHATACTION_RECORD_VIDEO
CHATACTION_RECORD_VIDEO_NOTE
CHATACTION_TYPING
CHATACTION_UPLOAD_AUDIO
CHATACTION_UPLOAD_VOICE
CHATACTION_UPLOAD_DOCUMENT
CHATACTION_CHOOSE_STICKER
CHATACTION_UPLOAD_PHOTO
CHATACTION_UPLOAD_VIDEO
CHATACTION_UPLOAD_VIDEO_NOTE
CHATMEMBER_ADMINISTRATOR
CHATMEMBER_CREATOR
CHATMEMBER_KICKED
CHATMEMBER_LEFT
CHATMEMBER_MEMBER
CHATMEMBER_RESTRICTED
DICE_DICE
DICE_DARTS
DICE_BASKETBALL
DICE_FOOTBALL
DICE_SLOT_MACHINE
DICE_BOWLING
DICE_ALL_EMOJI
MESSAGEENTITY_MENTION
MESSAGEENTITY_HASHTAG
MESSAGEENTITY_CASHTAG
MESSAGEENTITY_PHONE_NUMBER
MESSAGEENTITY_BOT_COMMAND
MESSAGEENTITY_URL
MESSAGEENTITY_EMAIL
MESSAGEENTITY_BOLD
MESSAGEENTITY_ITALIC
MESSAGEENTITY_CODE
MESSAGEENTITY_PRE
MESSAGEENTITY_TEXT_LINK
MESSAGEENTITY_TEXT_MENTION
MESSAGEENTITY_UNDERLINE
MESSAGEENTITY_STRIKETHROUGH
MESSAGEENTITY_SPOILER
MESSAGEENTITY_CUSTOM_EMOJI
MESSAGEENTITY_ALL_TYPES
PARSEMODE_MARKDOWN
PARSEMODE_MARKDOWN_V2
PARSEMODE_HTML
POLL_REGULAR
POLL_QUIZ
MAX_POLL_QUESTION_LENGTH
MAX_POLL_OPTION_LENGTH
STICKER_REGULAR
STICKER_MASK
STICKER_CUSTOM_EMOJI
STICKER_FOREHEAD
STICKER_EYES
STICKER_MOUTH
STICKER_CHIN
UPDATE_MESSAGE
UPDATE_EDITED_MESSAGE
UPDATE_CHANNEL_POST
UPDATE_EDITED_CHANNEL_POST
UPDATE_INLINE_QUERY
UPDATE_CHOSEN_INLINE_RESULT
UPDATE_CALLBACK_QUERY
UPDATE_SHIPPING_QUERY
UPDATE_PRE_CHECKOUT_QUERY
UPDATE_POLL
UPDATE_POLL_ANSWER
UPDATE_MY_CHAT_MEMBER
UPDATE_CHAT_MEMBER
UPDATE_CHAT_JOIN_REQUEST
UPDATE_ALL_TYPES
BOT_COMMAND_SCOPE_DEFAULT
BOT_COMMAND_SCOPE_ALL_PRIVATE_CHATS
BOT_COMMAND_SCOPE_ALL_GROUP_CHATS
BOT_COMMAND_SCOPE_ALL_CHAT_ADMINISTRATORS
BOT_COMMAND_SCOPE_CHAT
BOT_COMMAND_SCOPE_CHAT_ADMINISTRATORS
BOT_COMMAND_SCOPE_CHAT_MEMBER
- telegram.Contact
- telegram.Dice
- telegram.Document
- telegram.error module
- telegram.File
- telegram.ForceReply
- telegram.ForumTopic
- telegram.ForumTopicClosed
- telegram.ForumTopicCreated
- telegram.ForumTopicReopened
- telegram.InlineKeyboardButton
InlineKeyboardButton
InlineKeyboardButton.text
InlineKeyboardButton.url
InlineKeyboardButton.login_url
InlineKeyboardButton.callback_data
InlineKeyboardButton.web_app
InlineKeyboardButton.switch_inline_query
InlineKeyboardButton.switch_inline_query_current_chat
InlineKeyboardButton.callback_game
InlineKeyboardButton.pay
InlineKeyboardButton.de_json()
InlineKeyboardButton.update_callback_data()
- telegram.InlineKeyboardMarkup
- telegram.InputFile
- telegram.InputMedia
- telegram.InputMediaAnimation
- telegram.InputMediaAudio
- telegram.InputMediaDocument
- telegram.InputMediaPhoto
- telegram.InputMediaVideo
- telegram.KeyboardButton
- telegram.KeyboardButtonPollType
- telegram.Location
- telegram.LoginUrl
- telegram.MenuButton
- telegram.MenuButtonCommands
- telegram.MenuButtonDefault
- telegram.MenuButtonWebApp
- telegram.Message
Message
Message.message_id
Message.from_user
Message.sender_chat
Message.date
Message.chat
Message.forward_from
Message.forward_from_chat
Message.forward_from_message_id
Message.forward_date
Message.is_automatic_forward
Message.reply_to_message
Message.edit_date
Message.has_protected_content
Message.media_group_id
Message.text
Message.entities
Message.caption_entities
Message.audio
Message.document
Message.animation
Message.game
Message.photo
Message.sticker
Message.video
Message.voice
Message.video_note
Message.new_chat_members
Message.caption
Message.contact
Message.location
Message.venue
Message.left_chat_member
Message.new_chat_title
Message.new_chat_photo
Message.delete_chat_photo
Message.group_chat_created
Message.supergroup_chat_created
Message.channel_chat_created
Message.message_auto_delete_timer_changed
Message.migrate_to_chat_id
Message.migrate_from_chat_id
Message.pinned_message
Message.invoice
Message.successful_payment
Message.connected_website
Message.forward_signature
Message.forward_sender_name
Message.author_signature
Message.passport_data
Message.poll
Message.dice
Message.via_bot
Message.proximity_alert_triggered
Message.voice_chat_scheduled
Message.voice_chat_started
Message.voice_chat_ended
Message.voice_chat_participants_invited
Message.video_chat_scheduled
Message.video_chat_started
Message.video_chat_ended
Message.video_chat_participants_invited
Message.web_app_data
Message.reply_markup
Message.is_topic_message
Message.message_thread_id
Message.forum_topic_created
Message.forum_topic_closed
Message.forum_topic_reopened
Message.bot
Message.caption_html
Message.caption_html_urled
Message.caption_markdown
Message.caption_markdown_urled
Message.caption_markdown_v2
Message.caption_markdown_v2_urled
Message.chat_id
Message.close_forum_topic()
Message.copy()
Message.de_json()
Message.delete()
Message.delete_forum_topic()
Message.edit_caption()
Message.edit_forum_topic()
Message.edit_live_location()
Message.edit_media()
Message.edit_reply_markup()
Message.edit_text()
Message.effective_attachment
Message.forward()
Message.get_game_high_scores()
Message.link
Message.parse_caption_entities()
Message.parse_caption_entity()
Message.parse_entities()
Message.parse_entity()
Message.pin()
Message.reopen_forum_topic()
Message.reply_animation()
Message.reply_audio()
Message.reply_chat_action()
Message.reply_contact()
Message.reply_copy()
Message.reply_dice()
Message.reply_document()
Message.reply_game()
Message.reply_html()
Message.reply_invoice()
Message.reply_location()
Message.reply_markdown()
Message.reply_markdown_v2()
Message.reply_media_group()
Message.reply_photo()
Message.reply_poll()
Message.reply_sticker()
Message.reply_text()
Message.reply_venue()
Message.reply_video()
Message.reply_video_note()
Message.reply_voice()
Message.set_game_score()
Message.stop_live_location()
Message.stop_poll()
Message.text_html
Message.text_html_urled
Message.text_markdown
Message.text_markdown_urled
Message.text_markdown_v2
Message.text_markdown_v2_urled
Message.to_dict()
Message.unpin()
Message.unpin_all_forum_topic_messages()
- telegram.MessageAutoDeleteTimerChanged
- telegram.MessageId
- telegram.MessageEntity
MessageEntity
MessageEntity.type
MessageEntity.offset
MessageEntity.length
MessageEntity.url
MessageEntity.user
MessageEntity.language
MessageEntity.custom_emoji_id
MessageEntity.ALL_TYPES
MessageEntity.BOLD
MessageEntity.BOT_COMMAND
MessageEntity.CASHTAG
MessageEntity.CODE
MessageEntity.CUSTOM_EMOJI
MessageEntity.EMAIL
MessageEntity.HASHTAG
MessageEntity.ITALIC
MessageEntity.MENTION
MessageEntity.PHONE_NUMBER
MessageEntity.PRE
MessageEntity.SPOILER
MessageEntity.STRIKETHROUGH
MessageEntity.TEXT_LINK
MessageEntity.TEXT_MENTION
MessageEntity.UNDERLINE
MessageEntity.URL
MessageEntity.de_json()
- telegram.ParseMode
- telegram.PhotoSize
- telegram.Poll
Poll
Poll.id
Poll.question
Poll.options
Poll.total_voter_count
Poll.is_closed
Poll.is_anonymous
Poll.type
Poll.allows_multiple_answers
Poll.correct_option_id
Poll.explanation
Poll.explanation_entities
Poll.open_period
Poll.close_date
Poll.MAX_OPTION_LENGTH
Poll.MAX_QUESTION_LENGTH
Poll.QUIZ
Poll.REGULAR
Poll.de_json()
Poll.parse_explanation_entities()
Poll.parse_explanation_entity()
Poll.to_dict()
- telegram.PollAnswer
- telegram.PollOption
- telegram.ProximityAlertTriggered
- telegram.ReplyKeyboardRemove
- telegram.ReplyKeyboardMarkup
ReplyKeyboardMarkup
ReplyKeyboardMarkup.keyboard
ReplyKeyboardMarkup.resize_keyboard
ReplyKeyboardMarkup.one_time_keyboard
ReplyKeyboardMarkup.selective
ReplyKeyboardMarkup.input_field_placeholder
ReplyKeyboardMarkup.from_button()
ReplyKeyboardMarkup.from_column()
ReplyKeyboardMarkup.from_row()
ReplyKeyboardMarkup.to_dict()
- telegram.ReplyMarkup
- telegram.SentWebAppMessage
- telegram.TelegramObject
- telegram.Update
Update
Update.update_id
Update.message
Update.edited_message
Update.channel_post
Update.edited_channel_post
Update.inline_query
Update.chosen_inline_result
Update.callback_query
Update.shipping_query
Update.pre_checkout_query
Update.poll
Update.poll_answer
Update.my_chat_member
Update.chat_member
Update.chat_join_request
Update.ALL_TYPES
Update.CALLBACK_QUERY
Update.CHANNEL_POST
Update.CHAT_JOIN_REQUEST
Update.CHAT_MEMBER
Update.CHOSEN_INLINE_RESULT
Update.EDITED_CHANNEL_POST
Update.EDITED_MESSAGE
Update.INLINE_QUERY
Update.MESSAGE
Update.MY_CHAT_MEMBER
Update.POLL
Update.POLL_ANSWER
Update.PRE_CHECKOUT_QUERY
Update.SHIPPING_QUERY
Update.de_json()
Update.effective_chat
Update.effective_message
Update.effective_user
- telegram.User
User
User.id
User.is_bot
User.first_name
User.last_name
User.username
User.language_code
User.can_join_groups
User.can_read_all_group_messages
User.supports_inline_queries
User.bot
User.is_premium
User.added_to_attachment_menu
User.approve_join_request()
User.copy_message()
User.decline_join_request()
User.full_name
User.get_menu_button()
User.get_profile_photos()
User.link
User.mention_button()
User.mention_html()
User.mention_markdown()
User.mention_markdown_v2()
User.name
User.pin_message()
User.send_action()
User.send_animation()
User.send_audio()
User.send_chat_action()
User.send_contact()
User.send_copy()
User.send_dice()
User.send_document()
User.send_game()
User.send_invoice()
User.send_location()
User.send_media_group()
User.send_message()
User.send_photo()
User.send_poll()
User.send_sticker()
User.send_venue()
User.send_video()
User.send_video_note()
User.send_voice()
User.set_menu_button()
User.unpin_all_messages()
User.unpin_message()
- telegram.UserProfilePhotos
- telegram.Venue
- telegram.Video
- telegram.VideoChatEnded
- telegram.VideoChatParticipantsInvited
- telegram.VideoChatScheduled
- telegram.VideoChatStarted
- telegram.VideoNote
- telegram.Voice
- telegram.VoiceChatStarted
- telegram.VoiceChatEnded
- telegram.VoiceChatScheduled
- telegram.VoiceChatParticipantsInvited
- telegram.WebAppData
- telegram.WebAppInfo
- telegram.WebhookInfo
- Stickers
- telegram.Sticker
Sticker
Sticker.file_id
Sticker.file_unique_id
Sticker.width
Sticker.height
Sticker.is_animated
Sticker.is_video
Sticker.type
Sticker.thumb
Sticker.emoji
Sticker.set_name
Sticker.mask_position
Sticker.file_size
Sticker.premium_animation
Sticker.custom_emoji
Sticker.bot
Sticker.CUSTOM_EMOJI
Sticker.MASK
Sticker.REGULAR
Sticker.de_json()
Sticker.get_file()
- telegram.StickerSet
- telegram.MaskPosition
- telegram.Sticker
- Inline Mode
- telegram.InlineQuery
- telegram.InlineQueryResult
- telegram.InlineQueryResultArticle
InlineQueryResultArticle
InlineQueryResultArticle.type
InlineQueryResultArticle.id
InlineQueryResultArticle.title
InlineQueryResultArticle.input_message_content
InlineQueryResultArticle.reply_markup
InlineQueryResultArticle.url
InlineQueryResultArticle.hide_url
InlineQueryResultArticle.description
InlineQueryResultArticle.thumb_url
InlineQueryResultArticle.thumb_width
InlineQueryResultArticle.thumb_height
- telegram.InlineQueryResultAudio
InlineQueryResultAudio
InlineQueryResultAudio.type
InlineQueryResultAudio.id
InlineQueryResultAudio.audio_url
InlineQueryResultAudio.title
InlineQueryResultAudio.performer
InlineQueryResultAudio.audio_duration
InlineQueryResultAudio.caption
InlineQueryResultAudio.parse_mode
InlineQueryResultAudio.caption_entities
InlineQueryResultAudio.reply_markup
InlineQueryResultAudio.input_message_content
- telegram.InlineQueryResultCachedAudio
InlineQueryResultCachedAudio
InlineQueryResultCachedAudio.type
InlineQueryResultCachedAudio.id
InlineQueryResultCachedAudio.audio_file_id
InlineQueryResultCachedAudio.caption
InlineQueryResultCachedAudio.parse_mode
InlineQueryResultCachedAudio.caption_entities
InlineQueryResultCachedAudio.reply_markup
InlineQueryResultCachedAudio.input_message_content
- telegram.InlineQueryResultCachedDocument
InlineQueryResultCachedDocument
InlineQueryResultCachedDocument.type
InlineQueryResultCachedDocument.id
InlineQueryResultCachedDocument.title
InlineQueryResultCachedDocument.document_file_id
InlineQueryResultCachedDocument.description
InlineQueryResultCachedDocument.caption
InlineQueryResultCachedDocument.parse_mode
InlineQueryResultCachedDocument.caption_entities
InlineQueryResultCachedDocument.reply_markup
InlineQueryResultCachedDocument.input_message_content
- telegram.InlineQueryResultCachedGif
InlineQueryResultCachedGif
InlineQueryResultCachedGif.type
InlineQueryResultCachedGif.id
InlineQueryResultCachedGif.gif_file_id
InlineQueryResultCachedGif.title
InlineQueryResultCachedGif.caption
InlineQueryResultCachedGif.parse_mode
InlineQueryResultCachedGif.caption_entities
InlineQueryResultCachedGif.reply_markup
InlineQueryResultCachedGif.input_message_content
- telegram.InlineQueryResultCachedMpeg4Gif
InlineQueryResultCachedMpeg4Gif
InlineQueryResultCachedMpeg4Gif.type
InlineQueryResultCachedMpeg4Gif.id
InlineQueryResultCachedMpeg4Gif.mpeg4_file_id
InlineQueryResultCachedMpeg4Gif.title
InlineQueryResultCachedMpeg4Gif.caption
InlineQueryResultCachedMpeg4Gif.parse_mode
InlineQueryResultCachedMpeg4Gif.caption_entities
InlineQueryResultCachedMpeg4Gif.reply_markup
InlineQueryResultCachedMpeg4Gif.input_message_content
- telegram.InlineQueryResultCachedPhoto
InlineQueryResultCachedPhoto
InlineQueryResultCachedPhoto.type
InlineQueryResultCachedPhoto.id
InlineQueryResultCachedPhoto.photo_file_id
InlineQueryResultCachedPhoto.title
InlineQueryResultCachedPhoto.description
InlineQueryResultCachedPhoto.caption
InlineQueryResultCachedPhoto.parse_mode
InlineQueryResultCachedPhoto.caption_entities
InlineQueryResultCachedPhoto.reply_markup
InlineQueryResultCachedPhoto.input_message_content
- telegram.InlineQueryResultCachedSticker
- telegram.InlineQueryResultCachedVideo
InlineQueryResultCachedVideo
InlineQueryResultCachedVideo.type
InlineQueryResultCachedVideo.id
InlineQueryResultCachedVideo.video_file_id
InlineQueryResultCachedVideo.title
InlineQueryResultCachedVideo.description
InlineQueryResultCachedVideo.caption
InlineQueryResultCachedVideo.parse_mode
InlineQueryResultCachedVideo.caption_entities
InlineQueryResultCachedVideo.reply_markup
InlineQueryResultCachedVideo.input_message_content
- telegram.InlineQueryResultCachedVoice
InlineQueryResultCachedVoice
InlineQueryResultCachedVoice.type
InlineQueryResultCachedVoice.id
InlineQueryResultCachedVoice.voice_file_id
InlineQueryResultCachedVoice.title
InlineQueryResultCachedVoice.caption
InlineQueryResultCachedVoice.parse_mode
InlineQueryResultCachedVoice.caption_entities
InlineQueryResultCachedVoice.reply_markup
InlineQueryResultCachedVoice.input_message_content
- telegram.InlineQueryResultContact
InlineQueryResultContact
InlineQueryResultContact.type
InlineQueryResultContact.id
InlineQueryResultContact.phone_number
InlineQueryResultContact.first_name
InlineQueryResultContact.last_name
InlineQueryResultContact.vcard
InlineQueryResultContact.reply_markup
InlineQueryResultContact.input_message_content
InlineQueryResultContact.thumb_url
InlineQueryResultContact.thumb_width
InlineQueryResultContact.thumb_height
- telegram.InlineQueryResultDocument
InlineQueryResultDocument
InlineQueryResultDocument.type
InlineQueryResultDocument.id
InlineQueryResultDocument.title
InlineQueryResultDocument.caption
InlineQueryResultDocument.parse_mode
InlineQueryResultDocument.caption_entities
InlineQueryResultDocument.document_url
InlineQueryResultDocument.mime_type
InlineQueryResultDocument.description
InlineQueryResultDocument.reply_markup
InlineQueryResultDocument.input_message_content
InlineQueryResultDocument.thumb_url
InlineQueryResultDocument.thumb_width
InlineQueryResultDocument.thumb_height
- telegram.InlineQueryResultGame
- telegram.InlineQueryResultGif
InlineQueryResultGif
InlineQueryResultGif.type
InlineQueryResultGif.id
InlineQueryResultGif.gif_url
InlineQueryResultGif.gif_width
InlineQueryResultGif.gif_height
InlineQueryResultGif.gif_duration
InlineQueryResultGif.thumb_url
InlineQueryResultGif.thumb_mime_type
InlineQueryResultGif.title
InlineQueryResultGif.caption
InlineQueryResultGif.parse_mode
InlineQueryResultGif.caption_entities
InlineQueryResultGif.reply_markup
InlineQueryResultGif.input_message_content
- telegram.InlineQueryResultLocation
InlineQueryResultLocation
InlineQueryResultLocation.type
InlineQueryResultLocation.id
InlineQueryResultLocation.latitude
InlineQueryResultLocation.longitude
InlineQueryResultLocation.title
InlineQueryResultLocation.horizontal_accuracy
InlineQueryResultLocation.live_period
InlineQueryResultLocation.heading
InlineQueryResultLocation.proximity_alert_radius
InlineQueryResultLocation.reply_markup
InlineQueryResultLocation.input_message_content
InlineQueryResultLocation.thumb_url
InlineQueryResultLocation.thumb_width
InlineQueryResultLocation.thumb_height
- telegram.InlineQueryResultMpeg4Gif
InlineQueryResultMpeg4Gif
InlineQueryResultMpeg4Gif.type
InlineQueryResultMpeg4Gif.id
InlineQueryResultMpeg4Gif.mpeg4_url
InlineQueryResultMpeg4Gif.mpeg4_width
InlineQueryResultMpeg4Gif.mpeg4_height
InlineQueryResultMpeg4Gif.mpeg4_duration
InlineQueryResultMpeg4Gif.thumb_url
InlineQueryResultMpeg4Gif.thumb_mime_type
InlineQueryResultMpeg4Gif.title
InlineQueryResultMpeg4Gif.caption
InlineQueryResultMpeg4Gif.parse_mode
InlineQueryResultMpeg4Gif.caption_entities
InlineQueryResultMpeg4Gif.reply_markup
InlineQueryResultMpeg4Gif.input_message_content
- telegram.InlineQueryResultPhoto
InlineQueryResultPhoto
InlineQueryResultPhoto.type
InlineQueryResultPhoto.id
InlineQueryResultPhoto.photo_url
InlineQueryResultPhoto.thumb_url
InlineQueryResultPhoto.photo_width
InlineQueryResultPhoto.photo_height
InlineQueryResultPhoto.title
InlineQueryResultPhoto.description
InlineQueryResultPhoto.caption
InlineQueryResultPhoto.parse_mode
InlineQueryResultPhoto.caption_entities
InlineQueryResultPhoto.reply_markup
InlineQueryResultPhoto.input_message_content
- telegram.InlineQueryResultVenue
InlineQueryResultVenue
InlineQueryResultVenue.type
InlineQueryResultVenue.id
InlineQueryResultVenue.latitude
InlineQueryResultVenue.longitude
InlineQueryResultVenue.title
InlineQueryResultVenue.address
InlineQueryResultVenue.foursquare_id
InlineQueryResultVenue.foursquare_type
InlineQueryResultVenue.google_place_id
InlineQueryResultVenue.google_place_type
InlineQueryResultVenue.reply_markup
InlineQueryResultVenue.input_message_content
InlineQueryResultVenue.thumb_url
InlineQueryResultVenue.thumb_width
InlineQueryResultVenue.thumb_height
- telegram.InlineQueryResultVideo
InlineQueryResultVideo
InlineQueryResultVideo.type
InlineQueryResultVideo.id
InlineQueryResultVideo.video_url
InlineQueryResultVideo.mime_type
InlineQueryResultVideo.thumb_url
InlineQueryResultVideo.title
InlineQueryResultVideo.caption
InlineQueryResultVideo.parse_mode
InlineQueryResultVideo.caption_entities
InlineQueryResultVideo.video_width
InlineQueryResultVideo.video_height
InlineQueryResultVideo.video_duration
InlineQueryResultVideo.description
InlineQueryResultVideo.reply_markup
InlineQueryResultVideo.input_message_content
- telegram.InlineQueryResultVoice
InlineQueryResultVoice
InlineQueryResultVoice.type
InlineQueryResultVoice.id
InlineQueryResultVoice.voice_url
InlineQueryResultVoice.title
InlineQueryResultVoice.caption
InlineQueryResultVoice.parse_mode
InlineQueryResultVoice.caption_entities
InlineQueryResultVoice.voice_duration
InlineQueryResultVoice.reply_markup
InlineQueryResultVoice.input_message_content
- telegram.InputMessageContent
- telegram.InputTextMessageContent
- telegram.InputLocationMessageContent
- telegram.InputVenueMessageContent
- telegram.InputContactMessageContent
- telegram.InputInvoiceMessageContent
InputInvoiceMessageContent
InputInvoiceMessageContent.title
InputInvoiceMessageContent.description
InputInvoiceMessageContent.payload
InputInvoiceMessageContent.provider_token
InputInvoiceMessageContent.currency
InputInvoiceMessageContent.prices
InputInvoiceMessageContent.max_tip_amount
InputInvoiceMessageContent.suggested_tip_amounts
InputInvoiceMessageContent.provider_data
InputInvoiceMessageContent.photo_url
InputInvoiceMessageContent.photo_size
InputInvoiceMessageContent.photo_width
InputInvoiceMessageContent.photo_height
InputInvoiceMessageContent.need_name
InputInvoiceMessageContent.need_phone_number
InputInvoiceMessageContent.need_email
InputInvoiceMessageContent.need_shipping_address
InputInvoiceMessageContent.send_phone_number_to_provider
InputInvoiceMessageContent.send_email_to_provider
InputInvoiceMessageContent.is_flexible
InputInvoiceMessageContent.de_json()
InputInvoiceMessageContent.to_dict()
- telegram.ChosenInlineResult
- Payments
- Games
- Passport
- telegram.PassportElementError
- telegram.PassportElementErrorFile
- telegram.PassportElementErrorFiles
- telegram.PassportElementErrorReverseSide
- telegram.PassportElementErrorFrontSide
- telegram.PassportElementErrorDataField
- telegram.PassportElementErrorSelfie
- telegram.PassportElementErrorTranslationFile
- telegram.PassportElementErrorTranslationFiles
- telegram.PassportElementErrorUnspecified
- telegram.Credentials
- telegram.DataCredentials
- telegram.SecureData
SecureData
SecureData.personal_details
SecureData.passport
SecureData.internal_passport
SecureData.driver_license
SecureData.identity_card
SecureData.address
SecureData.utility_bill
SecureData.bank_statement
SecureData.rental_agreement
SecureData.passport_registration
SecureData.temporary_registration
SecureData.de_json()
- telegram.SecureValue
- telegram.FileCredentials
- telegram.IdDocumentData
- telegram.PersonalDetails
PersonalDetails
PersonalDetails.first_name
PersonalDetails.middle_name
PersonalDetails.last_name
PersonalDetails.birth_date
PersonalDetails.gender
PersonalDetails.country_code
PersonalDetails.residence_country_code
PersonalDetails.first_name_native
PersonalDetails.middle_name_native
PersonalDetails.last_name_native
- telegram.ResidentialAddress
- telegram.PassportData
- telegram.PassportFile
- telegram.EncryptedPassportElement
EncryptedPassportElement
EncryptedPassportElement.type
EncryptedPassportElement.data
EncryptedPassportElement.phone_number
EncryptedPassportElement.email
EncryptedPassportElement.files
EncryptedPassportElement.front_side
EncryptedPassportElement.reverse_side
EncryptedPassportElement.selfie
EncryptedPassportElement.translation
EncryptedPassportElement.hash
EncryptedPassportElement.bot
EncryptedPassportElement.de_json()
EncryptedPassportElement.de_json_decrypted()
EncryptedPassportElement.to_dict()
- telegram.EncryptedCredentials
- utils
- telegram.utils.helpers Module
DEFAULT_20
DEFAULT_FALSE
DEFAULT_NONE
DefaultValue
create_deep_linked_url()
decode_conversations_from_json()
decode_user_chat_data_from_json()
effective_message_type()
encode_conversations_to_json()
escape_markdown()
from_timestamp()
get_signal_name()
is_local_file()
mention_html()
mention_markdown()
parse_file_input()
to_float_timestamp()
to_timestamp()
- telegram.utils.promise.Promise
- telegram.utils.request.Request
- telegram.utils.types Module
- telegram.utils.helpers Module
Changelog
- Changelog
- Version 13.15
- Version 13.14
- Version 13.13
- Version 13.12
- Version 13.11
- Version 13.10
- Version 13.9
- Version 13.8.1
- Version 13.8
- Version 13.7
- Version 13.6
- Version 13.5
- Version 13.4.1
- Version 13.4
- Version 13.3
- Version 13.2
- Version 13.1
- Version 13.0
- Version 12.8
- Version 12.7
- Version 12.6.1
- Version 12.6
- Version 12.5.1
- Version 12.5
- Version 12.4.2
- Version 12.4.1
- Version 12.4.0
- Version 12.3.0
- Version 12.2.0
- Version 12.1.1
- Version 12.1.0
- Version 12.0.0
- Version 11.1.0
- Version 11.0.0
- Version 10.1.0
- Version 10.0.2
- Version 10.0.1
- Version 10.0.0
- Version 9.0.0
- Version 8.1.1
- Version 8.1.0
- Version 8.0.0
- Version 7.0.1
- Version 7.0.0
- Pre-version 7.0