1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Merge pull request #381 from noirgif/master

change the documentation of TeleBot.polling in readme
This commit is contained in:
FrankWang 2017-08-01 09:31:01 +08:00 committed by GitHub
commit 23d66afbb0
2 changed files with 4 additions and 4 deletions

View File

@ -234,8 +234,8 @@ tb = telebot.TeleBot(TOKEN) #create a new Telegram Bot object
# - none_stop: True/False (default False) - Don't stop polling when receiving an error from the Telegram servers # - none_stop: True/False (default False) - Don't stop polling when receiving an error from the Telegram servers
# - interval: True/False (default False) - The interval between polling requests # - interval: True/False (default False) - The interval between polling requests
# Note: Editing this parameter harms the bot's response time # Note: Editing this parameter harms the bot's response time
# - block: True/False (default True) - Blocks upon calling this function # - timeout: integer (default 20) - Timeout in seconds for long polling.
tb.polling(none_stop=False, interval=0, block=True) tb.polling(none_stop=False, interval=0, timeout=20)
# getMe # getMe
user = tb.get_me() user = tb.get_me()

View File

@ -421,8 +421,8 @@ TeleBot
# - none_stop: True/False (default False) - Don't stop polling when receiving an error from the Telegram servers # - none_stop: True/False (default False) - Don't stop polling when receiving an error from the Telegram servers
# - interval: True/False (default False) - The interval between polling requests # - interval: True/False (default False) - The interval between polling requests
# Note: Editing this parameter harms the bot's response time # Note: Editing this parameter harms the bot's response time
# - block: True/False (default True) - Blocks upon calling this function # - timeout: integer (default 20) - Timeout in seconds for long polling.
tb.polling(none_stop=False, interval=0, block=True) tb.polling(none_stop=False, interval=0, timeout=20)
# getMe # getMe
user = tb.get_me() user = tb.get_me()