Skip to content

Commit

Permalink
Fix some typos and add note about BotFather in migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
Lonami committed Oct 26, 2022
1 parent 0c86806 commit 073b87b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion readthedocs/concepts/botapi-vs-mtproto.rst
Expand Up @@ -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?
================
Expand Down Expand Up @@ -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():
Expand Down
2 changes: 1 addition & 1 deletion readthedocs/concepts/updates.rst
Expand Up @@ -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
Expand Down

0 comments on commit 073b87b

Please sign in to comment.