mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
Fix some typos and add note about BotFather in migration guide
This commit is contained in:
parent
0c868065c7
commit
073b87ba1f
|
@ -28,6 +28,9 @@ their own Telegram bots. Quoting their main page:
|
||||||
Bot API is simply an HTTP endpoint which translates your requests to it into
|
Bot API is simply an HTTP endpoint which translates your requests to it into
|
||||||
MTProto calls through tdlib_, their bot backend.
|
MTProto calls through tdlib_, their bot backend.
|
||||||
|
|
||||||
|
Configuration of your bot, such as its available commands and auto-completion,
|
||||||
|
is configured through `@BotFather <https://t.me/BotFather>`_.
|
||||||
|
|
||||||
|
|
||||||
What is MTProto?
|
What is MTProto?
|
||||||
================
|
================
|
||||||
|
@ -296,7 +299,7 @@ After rewriting:
|
||||||
|
|
||||||
class Subbot(TelegramClient):
|
class Subbot(TelegramClient):
|
||||||
def __init__(self, *a, **kw):
|
def __init__(self, *a, **kw):
|
||||||
await super().__init__(*a, **kw)
|
super().__init__(*a, **kw)
|
||||||
self.add_event_handler(self.on_update, events.NewMessage)
|
self.add_event_handler(self.on_update, events.NewMessage)
|
||||||
|
|
||||||
async def connect():
|
async def connect():
|
||||||
|
|
|
@ -207,7 +207,7 @@ Notice that unlike `client.disconnected
|
||||||
<telethon.client.telegrambaseclient.TelegramBaseClient.disconnected>`,
|
<telethon.client.telegrambaseclient.TelegramBaseClient.disconnected>`,
|
||||||
`client.run_until_disconnected
|
`client.run_until_disconnected
|
||||||
<telethon.client.updates.UpdateMethods.run_until_disconnected>` will
|
<telethon.client.updates.UpdateMethods.run_until_disconnected>` will
|
||||||
handle ``KeyboardInterrupt`` with you. This method is special and can
|
handle ``KeyboardInterrupt`` for you. This method is special and can
|
||||||
also be ran while the loop is running, so you can do this:
|
also be ran while the loop is running, so you can do this:
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
Loading…
Reference in New Issue
Block a user