From d5b7c2b49b6720cd29d0def4077b09ed69d12fd4 Mon Sep 17 00:00:00 2001 From: FrankWang Date: Wed, 15 Jul 2015 13:09:24 +0800 Subject: [PATCH] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 44105f0..63de2b2 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,10 @@ def listener(messages): tb = telebot.TeleBot(TOKEN) tb.set_update_listener(listener) #register listener tb.polling() +# polling will not stop when get new message +tb.polling(True) +# Interval setup. Sleep 3 secs between request new message. +tb.polling(True, 3) while True: # Don't let the main Thread end. pass