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

Update readme.

This commit is contained in:
eternnoir 2015-07-07 11:51:11 +08:00
parent a82f4d780f
commit 45544d7b54

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()