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:
commit
23d66afbb0
@ -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()
|
||||||
|
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user