Skip to content

Commit 30308bd

Browse files
committed
Fix formatting, table of contents link, add note on errors
1 parent af62c5b commit 30308bd

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.rst

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Table of contents
5959

6060
1. `API`_
6161

62-
2. `telegram.ext`_
62+
2. `Extensions`_
6363

6464
3. `JobQueue`_
6565

@@ -174,6 +174,8 @@ This library uses the `logging` module. To set up logging to standard output, pu
174174

175175
at the beginning of your script.
176176

177+
**Note:** The ``telegram.ext`` module will catch errors that would cause the bot to crash. All these are logged to the ``logging`` module, so it's recommended to use this if you are looking for error causes.
178+
177179
------
178180
_`API`
179181
------
@@ -265,13 +267,13 @@ There are many more API methods, to read the full API documentation::
265267

266268
$ pydoc telegram.Bot
267269

268-
---------------
269-
_`telegram.ext`
270-
---------------
270+
-------------
271+
_`Extensions`
272+
-------------
271273

272274
The ``telegram.ext`` submodule is built on top of the bare-metal API. It provides an easy-to-use interface to the ``telegram.Bot`` by caring about getting new updates with the ``Updater`` class from telegram and forwarding them to the ``Dispatcher`` class. We can register handler functions in the ``Dispatcher`` to make our bot react to Telegram commands, messages and even arbitrary updates.
273275

274-
We'll need an Access Token. __Note:__ If you have done this in the previous step, you can use that one. To generate an Access Token, we have to talk to `BotFather <https://telegram.me/botfather>`_ and follow a few simple steps (described `here <https://core.telegram.org/bots#botfather>`_).
276+
We'll need an Access Token. **Note:** If you have done this in the previous step, you can use that one. To generate an Access Token, we have to talk to `BotFather <https://telegram.me/botfather>`_ and follow a few simple steps (described `here <https://core.telegram.org/bots#botfather>`_).
275277

276278
First, we create an ``Updater`` object::
277279

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy