[0.12.0] - 2020-03-29
- New example:
examples/clear_group_messages.py(thanks to @h4x3rotab) - Proxy support (thanks to @h4x3rotab)
- New methods:
delete_messages,get_supergroup_full_info,create_basic_group_chat. (thanks to @h4x3rotab) - Fix #67: fixed infinite waiting for a result during login or for an ok result type.
- New Telegram initialization parameter:
use_secret_chats(Trueby default) (thanks to @DopeforHope) - Fix #81:
encryption_keyfor tdlib database encryption is now being sent to tdlib as a base64 encoded string.
[0.11.0] - 2020-02-15
tdlibupgraded tov1.6.0(from this repository)- Added a new parameter to the
call_method:block=False. If it is set toTrue, the method waits for the result from tdlib. - Added
Telegram.get_messagemethod (thanks to @ali-shokoohi) - Fixed a race condition when in some cases
AsyncResult.wait()could raiseTimeoutErroror end up in an endless loop. (thanks to @akamaus) - Added a new method:
get_user. - Added
Telegram.remove_update_handlerfunction to remove update handlers.
[0.10.0] - 2019-04-10
- Incompatible Linux library has been changed, now it's compiled on Ubuntu with libc.
[0.9.0] - 2019-04-05
- Incompatible default path for files is changed. Now the library uses an md5 hash of the phone number or bot token instead of just a phone number.
It should not be noticeable for most cases, but if you rely on locally saved files or database, you need to pass the
files_directoryparameter to thetelegram.client.Telegram. - Fixed problem with randomly raised "Database encryption key is needed" errors during login process. (#12)
- Fixed
stopmethod execution. (#8) - Added
examples/bot_login.pyexample.
[0.8.0] - 2019-03-17
telegram.client.Telegramnow supports any update type with a new methodadd_update_handler(handler_type, func)tdlib v 1.3.0- Fixed problem with openssl in Dockerfile (#4)
[0.7.0]
- New method
getMewith an example.
[0.6.1] - 2018-05-01
- Fixes for the Linux pre-compiled tdlib library.
[0.6.0] - 2018-05-01
- Fixes for the Linux pre-compiled tdlib library.
New required parameter in the
telegram.client.Telegram:database_encryption_key.Compiled
tdlibfiles now are in the pypi package (Linux and MacOS).Default location of the tdlib's files changed to
/tmp/.tdlib_files/{phone_number}.Now you can define additional optional params:
- use_test_dc (default False)
- device_model
- system_version
- system_language_code
- application_version
- use_message_database (default True)
Added new example: chat_stats.py.
Added two new methods:
get_instant_view- get instant view of a web pagecall_method- call any method with any params
New example: get_instant_view.py
- Logging level in the examples changed to
INFO. - Added new
Makefilecommand:docker-echo-bot. - All
docker-commands in theMakefilenow mount/tmp/from a host machine to store tdlib’s files.
- Added
DockerfileandMakefilewith some examples. - Changed directory for tdlib files to
/tmp/.tdlib_files_{self.phone}/.