From 9defc41774ce8633b34d77a3ec95b4b9bcd0e890 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannes=20H=C3=B6ke?= Date: Tue, 17 Nov 2015 00:04:28 +0100 Subject: [PATCH] correct docstrings --- telegram/boteventhandler.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/telegram/boteventhandler.py b/telegram/boteventhandler.py index a08b4e49c..e8e58f7aa 100644 --- a/telegram/boteventhandler.py +++ b/telegram/boteventhandler.py @@ -31,10 +31,12 @@ logging.getLogger(__name__).addHandler(H) class BotEventHandler: """ This class provides a frontend to telegram.Bot to the programmer, so they - can focus on coding the bot. I also runs in a separate thread, so the user + can focus on coding the bot. It also runs in a separate thread, so the user can interact with the bot, for example on the command line. It supports Handlers for different kinds of data: Updates from Telegram, basic text commands and even arbitrary types. + + Polling as well as webhook are supported. Attributes: @@ -95,7 +97,7 @@ class BotEventHandler: def start_webhook(self, host, port, cert, key, listen='0.0.0.0'): """ - Starts polling updates from Telegram. + Starts a small http server to listen for updates via webhook Args: host (str): Hostname or IP of the bot