DAGDA SEARCH | Back to results | Support

Home · python-telegram-bot/python-telegram-bot Wiki · GitHub

Source: https://github.com/python-telegram-bot/python-telegram-bot/wiki

Repository navigation

Home

Jump to bottom Edit New page Abdelrahman Elkheir edited this page Nov 1, 2025 · 47 revisions

Logo

Working with PTB

Quick Start

Our Wiki (where you currently are) contains an Introduction to the API explaining how the pure Bot API can be accessed via python-telegram-bot. Moreover, the Tutorial: Your first Bot gives an Introduction on how chatbots can be easily programmed with the help of the telegram.ext module.

Resources

Getting help

If the resources mentioned above don't answer your questions or simply overwhelm you, there are several ways of getting help.

  1. We have a vibrant community of developers helping each other in our Telegram group. Join us! Asking a question here is often the quickest way to get a pointer in the right direction.
  2. Ask questions by opening a discussion.
  3. You can even ask for help on Stack Overflow using the python-telegram-bot tag.

Structure of this Wiki

In the sidebar to the right, you can find all important pages of this wiki. They are roughly organized by the following logic:

Contributing to this Wiki

If you stumble upon a part of the wiki that is unclear or missing important points, please go ahead and drop us a message in our Telegram Group, or just edit the part yourself (anyone can contribute). We'd like our wiki to be as complete as possible 🙂

Wiki of python-telegram-bot © Copyright 2015-2026 – Licensed by Creative Commons

Must read

  1. Introduction to the API
  2. Tutorial: Your first bot
  3. FAQ
  4. How to ask good questions
  5. How to write an MWE

Concepts & Important Elements

  1. Architecture Overview
  2. Builder Pattern for Application
  3. Types of Handlers
  4. Working with Files and Media
  5. Exceptions, Warnings and Logging
  6. Concurrency in PTB

Notable Features

  1. Advanced Filters
  2. Storing data
  3. Making your bot persistent
  4. Adding Defaults
  5. Job Queue
  6. Arbitrary callback_data
  7. Avoiding flood limits
  8. Webhooks
  9. Bot API Forward Compatiblity

Code Resources

  1. Frequently requested design patterns
  2. Code snippets
  3. Performance Optimizations
  4. Telegram Passport
  5. Bots built with PTB
  6. Automated Bot Tests

Examples explained

  1. InlineKeyboard Example

Networking

  1. Working Behind a Proxy
  2. Handling network errors

Other resources

  1. Where to host Telegram Bots
  2. How to host your bot
  3. Local API Server
  4. Type Checking with PTB
  5. Press
  6. Notes on GAE
  7. Related Projects
  8. Emoji

Transition Guides

Administration

Clone this wiki locally