mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-29 03:32:49 +01:00
correct docstrings
This commit is contained in:
parent
ee8b78aa0d
commit
9defc41774
1 changed files with 4 additions and 2 deletions
|
@ -31,11 +31,13 @@ logging.getLogger(__name__).addHandler(H)
|
||||||
class BotEventHandler:
|
class BotEventHandler:
|
||||||
"""
|
"""
|
||||||
This class provides a frontend to telegram.Bot to the programmer, so they
|
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
|
can interact with the bot, for example on the command line. It supports
|
||||||
Handlers for different kinds of data: Updates from Telegram, basic text
|
Handlers for different kinds of data: Updates from Telegram, basic text
|
||||||
commands and even arbitrary types.
|
commands and even arbitrary types.
|
||||||
|
|
||||||
|
Polling as well as webhook are supported.
|
||||||
|
|
||||||
Attributes:
|
Attributes:
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
|
@ -95,7 +97,7 @@ class BotEventHandler:
|
||||||
|
|
||||||
def start_webhook(self, host, port, cert, key, listen='0.0.0.0'):
|
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:
|
Args:
|
||||||
host (str): Hostname or IP of the bot
|
host (str): Hostname or IP of the bot
|
||||||
|
|
Loading…
Reference in a new issue