Add say command to telegram frontend

pull/2/head
Guillermo Rodriguez 2022-12-24 11:58:03 -03:00
parent 193f60035d
commit ce5d847565
No known key found for this signature in database
GPG Key ID: EC3AB66D5D83B392
1 changed files with 10 additions and 0 deletions

View File

@ -185,6 +185,16 @@ async def run_skynet_telegram(
await bot.reply_to(
message, DONATION_INFO)
@bot.message_handler(commands=['say'])
async def say(message):
chat = message.chat
user = message.from_user
if (chat.type == 'group') or (user.id != 383385940):
return
await bot.send_message(GROUP_ID, message.text[4:])
@bot.message_handler(func=lambda message: True)
async def echo_message(message):