2017-12-08 Released 9.0.0
Breaking changes (possibly)
- Drop support for python 3.3 (PR #930)
New Features
- Support Bot API 3.5 (PR #920)
Changes
- Fix race condition in dispatcher start/stop (#887)
- Log error trace if there is no error handler registered (#694)
- Update examples with consistent string formatting (#870)
- Various changes and improvements to the docs.
2017-10-15 Released 8.1.1
- Fix Commandhandler crashing on single character messages (PR #873).
2017-10-14 Released 8.1.0
New features - Support Bot API 3.4 (PR #865).
Changes - MessageHandler & RegexHandler now consider channel_updates. - Fix command not recognized if it is directly followed by a newline (PR #869). - Removed Bot._message_wrapper (PR #822). - Unitests are now also running on AppVeyor (Windows VM). - Various unitest improvements. - Documentation fixes.
2017-09-01 Released 8.0.0
New features
- Fully support Bot Api 3.3 (PR #806).
- DispatcherHandlerStop (see docs).
- Regression fix for text_html & text_markdown (PR #777).
- Added effective_attachment to message (PR #766).
Non backward compatible changes
- Removed Botan support from the library (PR #776).
- Fully support Bot Api 3.3 (PR #806).
- Remove de_json() (PR #789).
Changes
- Sane defaults for tcp socket options on linux (PR #754).
- Add RESTRICTED as constant to ChatMember (PR #761).
- Add rich comparison to CallbackQuery (PR #764).
- Fix get_game_high_scores (PR #771).
- Warn on small con_pool_size during custom initalization of Updater (PR #793).
- Catch exceptions in error handlerfor errors that happen during polling (PR #810).
- For testing we switched to pytest (PR #788).
- Lots of small improvements to our tests and documentation.
2017-07-28 Released 7.0.1
- Fix TypeError exception in RegexHandler (PR #751).
- Small documentation fix (PR #749).
2017-07-25 Released 7.0.0
- 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
Messagetext 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
Botanimport fromutils(Botanis still available throughcontrib). - Removed deprecated
ReplyKeyboardHide. - Removed deprecated
edit_messageargument ofbot.set_game_score. - Internal restructure of files.
- Improved documentation.
- Improved unitests.
2017-06-18
Released 6.1.0
- Fully support Bot API 3.0
- Add more fine-grained filters for status updates
- Bug fixes and other improvements
2017-05-29
Released 6.0.3
- Faulty PyPI release
2017-05-29
Released 6.0.2
- Avoid confusion with user's
urllib3by renaming vendoredurllib3toptb_urllib3
2017-05-19
Released 6.0.1
- Add support for
User.language_code - Fix
Message.text_htmlandMessage.text_markdownfor messages with emoji
2017-05-19
Released 6.0.0
- Add support for Bot API 2.3.1
- Add support for
deleteMessageAPI method - New, simpler API for
JobQueue- python-telegram-bot#484 - Download files into file-like objects - python-telegram-bot#459
- Use vendor
urllib3to 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
Noneby default, instead of empty strings - Add
text_markdownandtext_htmlproperties toMessage- python-telegram-bot#507 - Add support for Socks5 proxy - python-telegram-bot#518
- Add support for filters in
CommandHandler- python-telegram-bot#536 - Add the ability to invert (not) filters - python-telegram-bot#552
- Add
Filters.groupandFilters.private - Compatibility with GAE via
urllib3.contribpackage - python-telegram-bot#583 - Add equality rich comparision operators to telegram objects - python-telegram-bot#604
- Several bugfixes and other improvements
- Remove some deprecated code
2017-04-17
Released 5.3.1
- Hotfix release due to bug introduced by urllib3 version 1.21
2016-12-11
Released 5.3
- Implement API changes of November 21st (Bot API 2.3)
JobQueuenow supportsdatetime.timedeltain addition to secondsJobQueuenow supports running jobs only on certain days- New
Filters.replyfilter - Bugfix for
Message.edit_reply_markup - Other bugfixes
2016-10-25
Released 5.2
- Implement API changes of October 3rd (games update)
- Add
Message.edit_*methods - Filters for the
MessageHandlercan now be combined using bitwise operators (& and |) - Add a way to save user- and chat-related data temporarily
- Other bugfixes and improvements
2016-09-24
Released 5.1
- Drop Python 2.6 support
- Deprecate
telegram.Emoji - Use
ujsonif available - Add instance methods to
Message,Chat,User,InlineQueryandCallbackQuery - RegEx filtering for
CallbackQueryHandlerandInlineQueryHandler - New
MessageHandlerfilters:forwardedandentity - Add
Message.get_entityto correctly handle UTF-16 codepoints andMessageEntityoffsets - Fix bug in
ConversationHandlerwhen first handler ends the conversation - Allow multiple
Dispatcherinstances - Add
ChatMigratedException - Properly split and handle arguments in
CommandHandler
2016-07-15
Released 5.0
- Rework
JobQueue - Introduce
ConversationHandler - Introduce
telegram.constants- python-telegram-bot#342
2016-07-12
Released 4.3.4
- Fix proxy support with
urllib3when proxy requires auth
2016-07-08
Released 4.3.3
- Fix proxy support with
urllib3
2016-07-04
Released 4.3.2
- Fix: Use
timeoutparameter in all API methods
2016-06-29
Released 4.3.1
- Update wrong requirement:
urllib3>=1.10
2016-06-28
Released 4.3
- Use
urllib3.PoolManagerfor connection re-use - Rewrite
run_asyncdecorator to re-use threads - New requirements:
urllib3andcertifi
2016-06-10
Released 4.2.1
- Fix
CallbackQuery.to_dict()bug (thanks to @jlmadurga) - Fix
editMessageTextexception when receiving aCallbackQuery
2016-05-28
Released 4.2
- Implement Bot API 2.1
- Move
botanmodule totelegram.contrib - New exception type:
BadRequest
2016-05-22
Released 4.1.2
- Fix
MessageEntitydecoding with Bot API 2.1 changes
2016-05-16
Released 4.1.1
- Fix deprecation warning in
Dispatcher
2016-05-15
Released 4.1
- Implement API changes from May 6, 2016
- Fix bug when
start_pollingwithclean=True - Methods now have snake_case equivalent, for example
telegram.Bot.send_messageis the same astelegram.Bot.sendMessage
2016-05-01
Released 4.0.3
- Add missing attribute
locationtoInlineQuery
2016-04-29
Released 4.0.2
- Bugfixes
KeyboardReplyMarkupnow acceptsstragain
2016-04-27
Released 4.0.1
- Implement Bot API 2.0
- Almost complete recode of
Dispatcher - Please read the Transition Guide to 4.0
- Changes from 4.0rc1
- The syntax of filters for
MessageHandler(upper/lower cases) - Handler groups are now identified by
intonly, and ordered
- The syntax of filters for
- Note: v4.0 has been skipped due to a PyPI accident
2016-04-22
Released 4.0rc1
- Implement Bot API 2.0
- Almost complete recode of
Dispatcher - Please read the Transistion Guide to 4.0
2016-03-22
Released 3.4
- Move
Updater,DispatcherandJobQueueto newtelegram.extsubmodule (thanks to @rahiel) - Add
disable_notificationparameter (thanks to @aidarbiktimirov) - Fix bug where commands sent by Telegram Web would not be recognized (thanks to @shelomentsevd)
- Add option to skip old updates on bot startup
- Send files from
BufferedReader
2016-02-28
Released 3.3
- Inline bots
- Send any file by URL
- Specialized exceptions:
Unauthorized,InvalidToken,NetworkErrorandTimedOut - Integration for botan.io (thanks to @ollmer)
- HTML Parsemode (thanks to @jlmadurga)
- Bugfixes and under-the-hood improvements
Very special thanks to Noam Meltzer (@tsnoam) for all of his work!
2016-01-09
Released 3.3b1
- Implement inline bots (beta)
2016-01-05
Released 3.2.0
- Introducing
JobQueue(original author: @franciscod) - Streamlining all exceptions to
TelegramError(Special thanks to @tsnoam) - Proper locking of
UpdaterandDispatcherstartandstopmethods - Small bugfixes
2015-12-29
Released 3.1.2
- Fix custom path for file downloads
- Don't stop the dispatcher thread on uncaught errors in handlers
2015-12-21
Released 3.1.1
- Fix a bug where asynchronous handlers could not have additional arguments
- Add
groupsandgroupdictas additional arguments for regex-based handlers
2015-12-16
Released 3.1.0
- The
chat-field inMessageis now of typeChat. (API update Oct 8 2015) Messagenow contains the optional fieldssupergroup_chat_created,migrate_to_chat_id,migrate_from_chat_idandchannel_chat_created. (API update Nov 2015)
2015-12-08
Released 3.0.0
- Introducing the
UpdaterandDispatcherclasses
2015-11-11
Released 2.9.2
- Error handling on request timeouts has been improved
2015-11-10
Released 2.9.1
- Add parameter
network_delayto Bot.getUpdates for slow connections
2015-11-10
Released 2.9
- Emoji class now uses
bytes_to_native_strfromfuture3rd party lib - Make
user_fromoptional to work with channels - Raise exception if Telegram times out on long-polling
Special thanks to @jh0ker for all hard work
2015-10-08
Released 2.8.7
- Type as optional for
GroupChatclass
2015-10-08
Released 2.8.6
- Adds type to
UserandGroupChatclasses (pre-release Telegram feature)
2015-09-24
Released 2.8.5
- Handles HTTP Bad Gateway (503) errors on request
- Fixes regression on
AudioandDocumentfor unicode fields
2015-09-20
Released 2.8.4
getFileandFile.downloadis now fully supported
2015-09-10
Released 2.8.3
- Moved
Bot._requestURLto its own class (telegram.utils.request) - Much better, such wow, Telegram Objects tests
- Add consistency for
strproperties on Telegram Objects - Better design to test if
chat_idis invalid - Add ability to set custom filename on
Bot.sendDocument(..,filename='') - Fix Sticker as
InputFile - Send JSON requests over urlencoded post data
- Markdown support for
Bot.sendMessage(..., parse_mode=ParseMode.MARKDOWN) - Refactor of
TelegramErrorclass (no more handlingIOErrororURLError)
2015-09-05
Released 2.8.2
- Fix regression on Telegram ReplyMarkup
- Add certificate to
is_inputfilemethod
2015-09-05
Released 2.8.1
- Fix regression on Telegram objects with thumb properties
2015-09-04
Released 2.8
- TelegramError when
chat_idis empty for send* methods setWebhooknow supports sending self-signed certificate- Huge redesign of existing Telegram classes
- Added support for PyPy
- Added docstring for existing classes
2015-08-19
Released 2.7.1
- Fixed JSON serialization for
message
2015-08-17
Released 2.7
- Added support for
Voiceobject andsendVoicemethod - Due backward compatibility performer or/and title will be required for
sendAudio - Fixed JSON serialization when forwarded message
2015-08-15
Released 2.6.1
- Fixed parsing image header issue on < Python 2.7.3
2015-08-14
Released 2.6.0
- Depreciation of
require_authenticationandclearCredentialsmethods - Giving
AUTHORSthe proper credits for their contribution for this project Message.dateandMessage.forward_dateare nowdatetimeobjects
2015-08-12
Released 2.5.3
telegram.Botnow supports to be unpickled
2015-08-11
Released 2.5.2
- New changes from Telegram Bot API have been applied
telegram.Botnow supports to be pickled- Return empty
strinsteadNonewhenmessage.textis empty
2015-08-10
Released 2.5.1
- Moved from GPLv2 to LGPLv3
2015-08-09
Released 2.5
- Fixes logging calls in API
2015-08-08
Released 2.4
- Fixes
Emojiclass for Python 3 PEP8improvements
2015-08-08
Released 2.3
- Fixes
ForceReplyclass - Remove
logging.basicConfigfrom library
2015-07-25
Released 2.2
- Allows
debug=Truewhen initializingtelegram.Bot
2015-07-20
Released 2.1
- Fix
to_dictforDocumentandVideo
2015-07-19
Released 2.0
- Fixes bugs
- Improves
__str__overto_json() - Creates abstract class
TelegramObject
2015-07-15
Released 1.9
- Python 3 officially supported
PEP8improvements
2015-07-12
Released 1.8
- Fixes crash when replying an unicode text message (special thanks to JRoot3D)
2015-07-11
Released 1.7
- Fixes crash when
usernameis not defined onchat(special thanks to JRoot3D)
2015-07-10
Released 1.6
- Improvements for GAE support
2015-07-10
Released 1.5
- Fixes randomly unicode issues when using
InputFile
2015-07-10
Released 1.4
requestslib is no longer required- Google App Engine (GAE) is supported
2015-07-10
Released 1.3
- Added support to
setWebhook(special thanks to macrojames)
2015-07-09
Released 1.2
CustomKeyboardclasses now available- Emojis available
PEP8improvements
2015-07-08
Released 1.1
- PyPi package now available
2015-07-08
Released 1.0
- Initial checkin of python-telegram-bot