diff --git a/README.md b/README.md index ee54c63..b675b2a 100644 --- a/README.md +++ b/README.md @@ -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() diff --git a/setup.py b/setup.py index edb3970..29495be 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup setup(name='pyTelegramBotAPI', - version='0.2.6', + version='0.2.7', description='Python Telegram bot api. ', author='eternnoir', author_email='eternnoir@gmail.com',