mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-29 04:43:45 +03:00
Update to v1.0.1
This commit is contained in:
parent
a6782ac6ea
commit
3154575ab6
|
@ -14,9 +14,33 @@ it can take advantage of new goodies!
|
||||||
.. contents:: List of All Versions
|
.. contents:: List of All Versions
|
||||||
|
|
||||||
|
|
||||||
|
Bug Fixes (v1.0.1)
|
||||||
|
==================
|
||||||
|
|
||||||
|
*Published at 2018/06/27*
|
||||||
|
|
||||||
|
And as usual, every major release has a few bugs that make the library
|
||||||
|
unusable! This quick update should fix those, namely:
|
||||||
|
|
||||||
|
Bug fixes
|
||||||
|
~~~~~~~~~
|
||||||
|
|
||||||
|
- `client.start() <telethon.client.auth.AuthMethods.start>` was completely
|
||||||
|
broken due to a last-time change requiring named arguments everywhere.
|
||||||
|
- Since the rewrite, if your system clock was wrong, the connection would
|
||||||
|
get stuck in an infinite "bad message" loop of responses from Telegram.
|
||||||
|
- Accessing the buttons of a custom message wouldn't work in channels,
|
||||||
|
which lead to fix a completely different bug regarding starting bots.
|
||||||
|
- Disconnecting could complain if the magic ``telethon.sync`` was imported.
|
||||||
|
- Successful automatic reconnections now ask Telegram to send updates to us
|
||||||
|
once again as soon as the library is ready to listen for them.
|
||||||
|
|
||||||
|
|
||||||
Synchronous magic (v1.0)
|
Synchronous magic (v1.0)
|
||||||
========================
|
========================
|
||||||
|
|
||||||
|
*Published at 2018/06/27*
|
||||||
|
|
||||||
.. important::
|
.. important::
|
||||||
|
|
||||||
If you come from Telethon pre-1.0 you **really** want to read
|
If you come from Telethon pre-1.0 you **really** want to read
|
||||||
|
@ -107,7 +131,7 @@ Additions
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
with TelegramClient(name, api_id, api_hash).star(bot_token=token) as bot:
|
with TelegramClient(name, api_id, api_hash).start(bot_token=token) as bot:
|
||||||
bot.send_message(chat, 'Hello!')
|
bot.send_message(chat, 'Hello!')
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# Versions should comply with PEP440.
|
# Versions should comply with PEP440.
|
||||||
# This line is parsed in setup.py:
|
# This line is parsed in setup.py:
|
||||||
__version__ = '1.0'
|
__version__ = '1.0.1'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user