From d86ca306016019cc8f7a0a624030c0c40e4892de Mon Sep 17 00:00:00 2001 From: Rahiel Kasim Date: Thu, 28 Apr 2016 12:44:35 +0200 Subject: [PATCH] README: document snake_case alias methods for telegram.Bot --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 617c79e44..f032390fd 100644 --- a/README.rst +++ b/README.rst @@ -202,7 +202,7 @@ _`API` 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! -The API is exposed via the ``telegram.Bot`` class. +The API is exposed via the ``telegram.Bot`` class. The methods have names as described in the official `Telegram Bot API `_, but equivalent snake_case methods are available for `PEP8 `_ enthusiasts. So for example `telegram.Bot.send_message` is the same as `telegram.Bot.sendMessage`. To generate an Access Token you have to talk to `BotFather `_ and follow a few simple steps (described `here `_).