From 073b87ba1f6e177f8109560e82b373d2ced5913c Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Wed, 26 Oct 2022 14:13:03 +0200 Subject: [PATCH] Fix some typos and add note about BotFather in migration guide --- readthedocs/concepts/botapi-vs-mtproto.rst | 5 ++++- readthedocs/concepts/updates.rst | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/readthedocs/concepts/botapi-vs-mtproto.rst b/readthedocs/concepts/botapi-vs-mtproto.rst index 224bca08..b42a1bcf 100644 --- a/readthedocs/concepts/botapi-vs-mtproto.rst +++ b/readthedocs/concepts/botapi-vs-mtproto.rst @@ -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 `_. + 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(): diff --git a/readthedocs/concepts/updates.rst b/readthedocs/concepts/updates.rst index 0c80c344..624c843b 100644 --- a/readthedocs/concepts/updates.rst +++ b/readthedocs/concepts/updates.rst @@ -207,7 +207,7 @@ Notice that unlike `client.disconnected `, `client.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