def send_error(self, text):
"""
Sending text using telegram and error channel
:param text: text to be sent
"""
try:
self.telegram.sendMessage(chat_id=settings.ERRORS_TELEGRAM_CHAT_ID, text=text)
except Exception as e:
print('Error trying to send the error to a ErrorChat {}'.format(e))
print(text)
telegram_writer.py 文件源码
python
阅读 16
收藏 0
点赞 0
评论 0
评论列表
文章目录