Released on May 02, 2018
Keyboards and Callback Queries¶
The workdir parameter of the Client class lets you specify a custom working directory for you session files.
Enable the debug mode by passing
debug=Trueto the start() method.
Access all matches of your Filters.regex pattern using
Specify custom prefixes and separators for Filters.command and access the arguments via
edit_message_reply_markup() lets you edit only the reply markup of a bot message.
You can now pass extra arguments to your
progresscallback function by using
progress_argsavailable for every
send_*methods (media upload only). This is useful, for example, if you want to pass a chat_id and a message_id in order to edit a message with the updated progress.
New remove_handler() method used to remove a previously registered handler. add_handler() can also return a tuple of (handler, group) which can be stored and directly passed to remove_handler(). Thanks @JosXa!
Answer callback_queries with answer_callback_query().
Is now possible to pass chat actions as string, like “typing”, “upload_video”, …
Forwarding, deleting and getting messages has become easier; you can pass a single message id or a list of such, as well as an iterator or a generator to the
Base types, such as
strare now hinted on every raw function and type parameter.