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 at our github in the examples folder.
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.Updater
- telegram.ext.Dispatcher
- telegram.ext.DispatcherHandlerStop
- telegram.ext.CallbackContext
- telegram.ext.Defaults
- telegram.ext.Job
- telegram.ext.JobQueue
- telegram.ext.MessageQueue
- telegram.ext.DelayQueue
- Handlers
- telegram.ext.Handler
- telegram.ext.CallbackQueryHandler
- 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
- utils
- telegram package
- telegram.Animation
- telegram.Audio
- telegram.Bot
- telegram.BotCommand
- telegram.CallbackQuery
- telegram.Chat
- telegram.ChatAction
- telegram.ChatLocation
- telegram.ChatMember
- telegram.ChatPermissions
- telegram.ChatPhoto
- telegram.constants Module
- telegram.Contact
- telegram.Dice
- telegram.Document
- telegram.error module
- telegram.File
- telegram.ForceReply
- telegram.InlineKeyboardButton
- 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.Message
- telegram.MessageId
- telegram.MessageEntity
- telegram.ParseMode
- telegram.PhotoSize
- telegram.Poll
- telegram.PollAnswer
- telegram.PollOption
- telegram.ProximityAlertTriggered
- telegram.ReplyKeyboardRemove
- telegram.ReplyKeyboardMarkup
- telegram.ReplyMarkup
- telegram.TelegramObject
- telegram.Update
- telegram.User
- telegram.UserProfilePhotos
- telegram.Venue
- telegram.Video
- telegram.VideoNote
- telegram.Voice
- telegram.WebhookInfo
- Stickers
- Inline Mode
- telegram.InlineQuery
- telegram.InlineQueryResult
- telegram.InlineQueryResultArticle
- telegram.InlineQueryResultAudio
- telegram.InlineQueryResultCachedAudio
- telegram.InlineQueryResultCachedDocument
- telegram.InlineQueryResultCachedGif
- telegram.InlineQueryResultCachedMpeg4Gif
- telegram.InlineQueryResultCachedPhoto
- telegram.InlineQueryResultCachedSticker
- telegram.InlineQueryResultCachedVideo
- telegram.InlineQueryResultCachedVoice
- telegram.InlineQueryResultContact
- telegram.InlineQueryResultDocument
- telegram.InlineQueryResultGame
- telegram.InlineQueryResultGif
- telegram.InlineQueryResultLocation
- telegram.InlineQueryResultMpeg4Gif
- telegram.InlineQueryResultPhoto
- telegram.InlineQueryResultVenue
- telegram.InlineQueryResultVideo
- telegram.InlineQueryResultVoice
- telegram.InputMessageContent
- telegram.InputTextMessageContent
- telegram.InputLocationMessageContent
- telegram.InputVenueMessageContent
- telegram.InputContactMessageContent
- telegram.ChosenInlineResult
- Payments
- Games
- Passport
- telegram.PassportElementError
- telegram.PassportElementErrorFile
- telegram.PassportElementErrorReverseSide
- telegram.PassportElementErrorFrontSide
- telegram.PassportElementErrorFiles
- telegram.PassportElementErrorDataField
- telegram.PassportElementErrorFile
- telegram.Credentials
- telegram.DataCredentials
- telegram.SecureData
- telegram.FileCredentials
- telegram.IdDocumentData
- telegram.PersonalDetails
- telegram.ResidentialAddress
- telegram.PassportData
- telegram.PassportFile
- telegram.EncryptedPassportElement
- telegram.EncryptedCredentials
- telegram.utils package
Changelog¶
- Changelog
- 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