mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Merge branch 'master' into develop
This commit is contained in:
commit
d5c1601bf0
@ -85,6 +85,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