From ed29f9316fb3f05960dbcd5846f69917c112b99c Mon Sep 17 00:00:00 2001 From: noirgif Date: Sun, 30 Jul 2017 23:24:30 -0700 Subject: [PATCH] change the documentation of TeleBot.polling in readme --- README.md | 4 ++-- README.rst | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 48b6e1c..2271ca4 100644 --- a/README.md +++ b/README.md @@ -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 # - interval: True/False (default False) - The interval between polling requests # Note: Editing this parameter harms the bot's response time -# - block: True/False (default True) - Blocks upon calling this function -tb.polling(none_stop=False, interval=0, block=True) +# - timeout: integer (default 20) - Timeout in seconds for long polling. +tb.polling(none_stop=False, interval=0, timeout=20) # getMe user = tb.get_me() diff --git a/README.rst b/README.rst index 3cce442..d776571 100644 --- a/README.rst +++ b/README.rst @@ -421,8 +421,8 @@ TeleBot # - 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 # Note: Editing this parameter harms the bot's response time - # - block: True/False (default True) - Blocks upon calling this function - tb.polling(none_stop=False, interval=0, block=True) + # - timeout: integer (default 20) - Timeout in seconds for long polling. + tb.polling(none_stop=False, interval=0, timeout=20) # getMe user = tb.get_me()