commit
146d7e57d6
@ -394,7 +394,7 @@ def server(text, msg,sckey):
|
|||||||
def tgbot(text, msg,token,group_id):
|
def tgbot(text, msg,token,group_id):
|
||||||
import telegram
|
import telegram
|
||||||
try:
|
try:
|
||||||
bot = telegram.Bot(token='xxx'.format(token))# Your Telegram Bot Token
|
bot = telegram.Bot(token='{}'.format(token))# Your Telegram Bot Token
|
||||||
bot.send_message(chat_id=group_id, text='{}\r\n{}'.format(text, msg))
|
bot.send_message(chat_id=group_id, text='{}\r\n{}'.format(text, msg))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user