mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
Update external links to the documentation
This commit is contained in:
@@ -119,7 +119,7 @@ with
|
||||
|
||||
TelegramClient('anon', api_id, api_hash, proxy=(socks.SOCKS5, '127.0.0.1', 4444))
|
||||
|
||||
(of course, replacing the IP and port with the IP and port of the proxye).
|
||||
(of course, replacing the IP and port with the IP and port of the proxy).
|
||||
|
||||
The ``proxy=`` argument should be a tuple, a list or a dict,
|
||||
consisting of parameters described `in PySocks usage`__.
|
||||
|
@@ -47,12 +47,12 @@ And except them as such:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
import time
|
||||
try:
|
||||
client.send_message(chat, 'Hi')
|
||||
except FloodWaitError as e:
|
||||
except errors.FloodWaitError as e:
|
||||
# e.seconds is how many seconds you have
|
||||
# to wait before making the request again.
|
||||
print('Flood for', e.seconds)
|
||||
time.sleep(e.seconds)
|
||||
|
||||
|
||||
My account was deleted/limited when using the library
|
||||
|
Reference in New Issue
Block a user