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
60a7595b72
commit
7b919852fa
@ -83,6 +83,12 @@ tb = telebot.TeleBot(TOKEN, False)
|
||||
# 4 Thread worker for message listener.
|
||||
tb = telebot.TeleBot(TOKEN, True, 4)
|
||||
|
||||
# Setup telebot handler to telebot logger. If you want to get some information from telebot.
|
||||
# More information at Logging section
|
||||
handler = logging.StreamHandler(sys.stdout)
|
||||
telebot.logger.addHandler(handler)
|
||||
telebot.logger.setLevel(logging.INFO)
|
||||
|
||||
# getMe
|
||||
user = tb.get_me()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user