mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Update readme.
This commit is contained in:
parent
a82f4d780f
commit
45544d7b54
@ -73,6 +73,12 @@ import time
|
|||||||
TOKEN = '<token_string>'
|
TOKEN = '<token_string>'
|
||||||
tb = telebot.TeleBot(TOKEN) #create a new Telegram Bot object
|
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
|
# getMe
|
||||||
user = tb.get_me()
|
user = tb.get_me()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user