python-telegram-handler
python-telegram-handler copied to clipboard
A python logging handler that sends logs via Telegram Bot Api.
Замутил вот такой конфиг: ``` { 'version': 1, 'formatters': { 'telegram': { 'class': 'telegram_handler.HtmlFormatter', 'fmt': '%(asctime)s\n%(levelname)s\nFrom: %(name)s\n\n%(message)s', 'use_emoji': True, } }, 'handlers': { 'telegram': { 'class': 'telegram_handler.TelegramHandler', 'token': '', 'chat_id':...
Looking at the code seems that http requests to telegram api are synchronous, meaning that in case of network latency or errors it will lag the execution. It would be...
If set use_emoji to True - emoji aren't shown in Telegram.  I tried to change emoji codes to Unicode codes, then it worked ``` WHITE_CIRCLE = '\U000026AA' BLUE_CIRCLE =...
fixed emoji and added some more emoji for every level added support for use_emoji from initializer added support for disabling notification under certain level Fixing issue #25
Hi, this is actually a pr request (that if someone will like I can submit myself). - First issue to solve is that use_emoji is not supported in TelegramHandler initializer....
How to avoid potential security breach storing telegram token and channel id in config file/github? 'handlers': { 'telegram': { 'class': 'telegram_handler.TelegramHandler', 'formatter': 'telegram', 'token': 'your token', 'chat_id': 'chat id' Is...