telegram_writer.py 文件源码

python
阅读 16 收藏 0 点赞 0 评论 0

项目:classifieds-to-telegram 作者: DiegoHueltes 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号