Update readme.

This commit is contained in:
eternnoir 2015-07-07 11:51:11 +08:00
parent a82f4d780f
commit 45544d7b54
1 changed files with 6 additions and 0 deletions

View File

@ -73,6 +73,12 @@ import time
TOKEN = '<token_string>'
tb = telebot.TeleBot(TOKEN) #create a new Telegram Bot object
# TeleBot will not create thread for message listener. Default is True.
tb = telebot.TeleBot(TOKEN, False)
# 4 Thread worker for message listener.
tb = telebot.TeleBot(TOKEN, True, 4)
# getMe
user = tb.get_me()