upd ansi: add tg
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simple_Not 2023-11-08 23:38:28 +10:00
parent 908e006cdb
commit d089ed821a

View File

@ -115,12 +115,12 @@ class CallbackModule(CallbackBase):
def send_msg(self, msg): def send_msg(self, msg):
if self.socks5_uri is not None: if self.socks5_uri is not None:
apihelper.proxy = {'https': self.socks5_uri} apihelper.proxy = {'https': self.socks5_uri}
print(self.tg_token) # print(self.tg_token)
bot = telebot.TeleBot(self.tg_token) bot = telebot.TeleBot(self.tg_token)
print(bot) # print(bot)
print(self.tg_chat_id) # print(self.tg_chat_id)
print(msg) # print(msg)
bot.send_message(self.tg_chat_id, 'Hi! I\'m a Bot!') # bot.send_message(self.tg_chat_id, 'Hi! I\'m a Bot!')
bot.send_message(self.tg_chat_id, msg, parse_mode='HTML') bot.send_message(self.tg_chat_id, msg, parse_mode='HTML')
def v2_playbook_on_start(self, playbook): def v2_playbook_on_start(self, playbook):