You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -56,6 +54,8 @@ Here's how to make a one-off code change.
56
54
57
55
- You can refer to relevant issues in the commit message by writing, e.g., "#105".
58
56
57
+
- Your code should adhere to the `PEP 8 Style Guide`_, with the exception that we have a maximum line length of 99.
58
+
59
59
- For consistency, please conform to `Google Python Style Guide`_ and `Google Python Style Docstrings`_. In addition, code should be formatted consistently with other code around it.
60
60
61
61
- The following exceptions to the above (Google's) style guides applies:
@@ -116,7 +116,7 @@ Here's how to make a one-off code change.
116
116
117
117
- At the end, the reviewer will merge the pull request.
118
118
119
-
6. **Tidy up!** Delete the feature branch from your both your local clone and the GitHub repository:
119
+
6. **Tidy up!** Delete the feature branch from both your local clone and the GitHub repository:
120
120
121
121
``$ git branch -D your-branch-name``
122
122
@@ -127,6 +127,7 @@ Here's how to make a one-off code change.
127
127
.. _`Code of Conduct`: https://www.python.org/psf/codeofconduct/
Copy file name to clipboardExpand all lines: README.rst
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -197,7 +197,7 @@ _`API`
197
197
198
198
Note: Using the ``Bot`` class directly is the 'old' method, we have an easier way to make bots described in the next section. All of this is however still important information, even if you're using the ``telegram.ext`` submodule!
199
199
200
-
The API is exposed via the ``telegram.Bot`` class.
200
+
The API is exposed via the ``telegram.Bot`` class. The methods have names as described in the official `Telegram Bot API <https://core.telegram.org/bots/api>`_, but equivalent snake_case methods are available for `PEP8 <https://www.python.org/dev/peps/pep-0008/>`_ enthusiasts. So for example `telegram.Bot.send_message` is the same as `telegram.Bot.sendMessage`.
201
201
202
202
To generate an Access Token you have to talk to `BotFather <https://telegram.me/botfather>`_ and follow a few simple steps (described `here <https://core.telegram.org/bots#6-botfather>`_).
203
203
@@ -351,7 +351,7 @@ We want this function to be called on a Telegram message that contains the ``/st
People might try to send commands to the bot that it doesn't understand, so we can use a ``RegexHandler`` to recognize all commands that were not recognized by the previous handlers. **Note:** This handler has to be added last, else it will be triggered before the ``CommandHandlers`` had a chance to look at the update:
402
402
@@ -407,7 +407,7 @@ People might try to send commands to the bot that it doesn't understand, so we c
0 commit comments