We want to keep a list of projects that are related to
If you are developing such a project, please add it to this list: https://github.com/python-telegram-bot/python-telegram-bot/wiki/Related-Projects
python-telegram-bot in some way.If you are developing such a project, please add it to this list: https://github.com/python-telegram-bot/python-telegram-bot/wiki/Related-Projects
To our friends in Brazil, check out this great tutorial by Júlia Rizza:
https://juliarizza.wordpress.com/2016/08/06/fazendo-um-bot-para-telegram-em-python/
https://juliarizza.wordpress.com/2016/08/06/fazendo-um-bot-para-telegram-em-python/
JuliaRizza.py
Fazendo um Bot para Telegram em Python
Um tutorial explicativo de como construir um bot para Telegram usando Python.
Another cool blog post that uses python-telegram-bot for a chat bot with Natural Language Processing! Link: http://blog.algorithmia.com/create-a-chatbot-telegram-python-summarize-text/
We will start collecting articles like this in the wiki, please add any articles you know (or have written yourself) here: https://github.com/python-telegram-bot/python-telegram-bot/wiki/Press
We will start collecting articles like this in the wiki, please add any articles you know (or have written yourself) here: https://github.com/python-telegram-bot/python-telegram-bot/wiki/Press
A new release, at last!
Changelog:
- Drop Python 2.6 support
- Deprecate
- Use
- Add instance methods to
- RegEx filtering for
- New
- Add
- Fix bug in
- Allow multiple
- Add
- Properly split and handle arguments in
First of all: Sorry for letting you wait so long between two releases. Second of all: Holy shit! What an epic changelog!
7 different contributors worked on this release, and there is some cool new stuff to explore. Check out our updated examples on GitHub!
As always, you can upgrade to the latest version with
python-telegram-bot v5.1 is now available on PyPIChangelog:
- Drop Python 2.6 support
- Deprecate
telegram.Emoji- Use
ujson if available- Add instance methods to
Message, Chat, User, InlineQuery and CallbackQuery- RegEx filtering for
CallbackQueryHandler and InlineQueryHandler- New
MessageHandler filters: forwarded and entity- Add
Message.get_entity to correctly handle UTF-16 codepoints and MessageEntity offsets- Fix bug in
ConversationHandler when first handler ends the conversation- Allow multiple
Dispatcher instances- Add
ChatMigrated Exception- Properly split and handle arguments in
CommandHandlerFirst of all: Sorry for letting you wait so long between two releases. Second of all: Holy shit! What an epic changelog!
7 different contributors worked on this release, and there is some cool new stuff to explore. Check out our updated examples on GitHub!
As always, you can upgrade to the latest version with
pip install -U python-telegram-botJust a heads up: We are aware of the Bot API changes of today, October 3rd, and we are already working on it.
The prophecy was fullfilled! We just released v5.2
- Implement API changes of October 3rd (games update)
- Add
- Filters for the
- Add a way to save user- and chat-related data temporarily (check out the new
- Other bugfixes and improvements
- Implement API changes of October 3rd (games update)
- Add
Message.edit_* methods- Filters for the
MessageHandler can now be combined using bitwise operators (& and |)- Add a way to save user- and chat-related data temporarily (check out the new
conversationbot2.py example)- Other bugfixes and improvements
Released v5.3
- Implement API changes of November 21st (Bot API 2.3)
-
-
- New
- Bugfix for
- Other bugfixes
Update with
- Implement API changes of November 21st (Bot API 2.3)
-
JobQueue now supports datetime.timedelta in addition to seconds-
JobQueue now supports running jobs only on certain days- New
Filters.reply filter- Bugfix for
Message.edit_reply_markup- Other bugfixes
Update with
pip install -U python-telegram-botI just released a hotfix version 5.3.1 which resolves https://github.com/python-telegram-bot/python-telegram-bot/issues/579 by enforcing the use of
We are still working on the v6 release.
urllib3 v1.20 instead of v1.21.We are still working on the v6 release.
Forwarded from Markdown
We just released python-telegram-bot v6.0!
This release adds lots of cool new stuff. To learn more about specific features, please read through the linked pull requests or join us in our Telegram Group and ask around.
- Add support for Bot API 2.3.1
- Add support for
- New, simpler API for
- Download files into file-like objects - PR #459
- Use vendor
- The default timeout for messages is now 5 seconds. For sending media, the default timeout is now 20 seconds.
- String attributes that are not set are now
- Add
- Add support for Socks5 proxy - PR #518
- Add support for filters in
- Add the ability to invert (not) filters - PR #552
- Add
- Compatibility with GAE via
- Add equality rich comparision operators to telegram objects - PR #604
- Several bugfixes and other improvements
- Remove some deprecated code
We'll be working on the new Bot API 3.0 features and bring them to you ASAP. Thanks a lot to all the wonderful people who contributed to this release!
As always, upgrade using
This release adds lots of cool new stuff. To learn more about specific features, please read through the linked pull requests or join us in our Telegram Group and ask around.
- Add support for Bot API 2.3.1
- Add support for
deleteMessage API method- New, simpler API for
JobQueue - PR #484- Download files into file-like objects - PR #459
- Use vendor
urllib3 to address issues with timeouts- The default timeout for messages is now 5 seconds. For sending media, the default timeout is now 20 seconds.
- String attributes that are not set are now
None by default, instead of empty strings- Add
text_markdown and text_html properties to Message - PR #507- Add support for Socks5 proxy - PR #518
- Add support for filters in
CommandHandler - PR #536- Add the ability to invert (not) filters - PR #552
- Add
Filters.group and Filters.private- Compatibility with GAE via
urllib3.contrib package - PR #583- Add equality rich comparision operators to telegram objects - PR #604
- Several bugfixes and other improvements
- Remove some deprecated code
We'll be working on the new Bot API 3.0 features and bring them to you ASAP. Thanks a lot to all the wonderful people who contributed to this release!
As always, upgrade using
pip install -U python-telegram-bot👍2
Released v6.0.1
- Add support for
- Fix
- Add support for
User.language_code- Fix
Message.text_html and Message.text_markdown for messages with emojiWe just released v6.1 beta 0, which includes all of Bot API 3.0.
You can install it using
You can install it using
pip install python-telegram-bot==6.1b0We just released v6.1 beta 1, which adds the missing Handler classes for the payment API.
You can install it using
You can install it using
pip install python-telegram-bot==6.1b1Released 6.1 beta 2
- Bugfixes
- Add filters for payment API
Install it using
- Bugfixes
- Add filters for payment API
Install it using
pip install python-telegram-bot==6.1b2Released 6.0.2
- Avoid confusion with user's
Upgrade using
- Avoid confusion with user's
urllib3 by renaming vendored urllib3 to ptb_urllib3Upgrade using
pip install python-telegram-bot -UThere seems to be a problem with the PyPI release of v6.0.2.
Please don't upgrade, we are looking into it.
If you already upgraded, you can downgrade using
Please don't upgrade, we are looking into it.
If you already upgraded, you can downgrade using
pip install python-telegram-bot==6.0.1We just released v6.1.0!
- Fully support Bot API 3.0
- Add more fine-grained filters for status updates
- Bug fixes and other improvements
As always, upgrade using
- Fully support Bot API 3.0
- Add more fine-grained filters for status updates
- Bug fixes and other improvements
As always, upgrade using
pip install python-telegram-bot -UWe just released v7.0.0!
TL;DR
- We wish to thank everyone who had contributed to this major release. If for some reason your name is not in AUTHORS.rst please don't be shy and send us a PR to add your name.
- As always, upgrade using
Changes:
- Fully support Bot API 3.2.
- New filters for handling messages from specific chat/user id (PR #677).
- Add the possibility to add objects as arguments to send_* methods (PR #742).
- Fixed download of URLs with UTF-8 chars in path (PR #688).
- Fixed URL parsing for
- Fixed args dispatching in
- Fixed regression preventing IPv6 only hosts from connnecting to Telegram servers (Issue #720).
- ConvesationHandler - check if a user exist before using it (PR #699).
- Removed deprecated
- Removed deprecated
- Removed deprecated
- Removed deprecated
- Internal restructure of files.
- Improved documentation.
- Improved unitests.
TL;DR
- We wish to thank everyone who had contributed to this major release. If for some reason your name is not in AUTHORS.rst please don't be shy and send us a PR to add your name.
- As always, upgrade using
pip install python-telegram-bot -U
Changes:
- Fully support Bot API 3.2.
- New filters for handling messages from specific chat/user id (PR #677).
- Add the possibility to add objects as arguments to send_* methods (PR #742).
- Fixed download of URLs with UTF-8 chars in path (PR #688).
- Fixed URL parsing for
Message text properties (PR #689).- Fixed args dispatching in
MessageQueue's decorator (PR #705).- Fixed regression preventing IPv6 only hosts from connnecting to Telegram servers (Issue #720).
- ConvesationHandler - check if a user exist before using it (PR #699).
- Removed deprecated
telegram.Emoji.- Removed deprecated
Botan import from utils (Botan is still available through contrib).- Removed deprecated
ReplyKeyboardHide.- Removed deprecated
edit_message argument of bot.set_game_score.- Internal restructure of files.
- Improved documentation.
- Improved unitests.
We just released v7.0.1 (a bug fix release).
Changes:
- Fix TypeError exception in RegexHandler (PR #751).
- Small documentation fix (PR #749).
As always, upgrade using:
Changes:
- Fix TypeError exception in RegexHandler (PR #751).
- Small documentation fix (PR #749).
As always, upgrade using:
pip install -U python-telegram-botHi,
We just wanted to let you all know that @EchteEldin & @BomJacob have been promoted to maintainers of the ptb project.
Both of them showed a major commitment & dedication to the project and have contributed a lot of their knowledge and experience. We were always happy to have them as part of the dev team, so we can only be delighted to have them as part of the maintainers.
@BomJacob & @EchteEldin - congratulations!
We just wanted to let you all know that @EchteEldin & @BomJacob have been promoted to maintainers of the ptb project.
Both of them showed a major commitment & dedication to the project and have contributed a lot of their knowledge and experience. We were always happy to have them as part of the dev team, so we can only be delighted to have them as part of the maintainers.
@BomJacob & @EchteEldin - congratulations!