Fix some typos and add note about BotFather in migration guide

This commit is contained in:
Lonami Exo 2022-10-26 14:13:03 +02:00
parent 0c868065c7
commit 073b87ba1f
2 changed files with 5 additions and 2 deletions

View File

@ -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
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?
================
@ -296,7 +299,7 @@ After rewriting:
class Subbot(TelegramClient):
def __init__(self, *a, **kw):
await super().__init__(*a, **kw)
super().__init__(*a, **kw)
self.add_event_handler(self.on_update, events.NewMessage)
async def connect():

View File

@ -207,7 +207,7 @@ Notice that unlike `client.disconnected
<telethon.client.telegrambaseclient.TelegramBaseClient.disconnected>`,
`client.run_until_disconnected
<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:
.. code-block:: python