More tg tweaks

pull/4/head
Guillermo Rodriguez 2023-01-17 07:11:54 -03:00
parent 122de1af9c
commit 5d6b3c2edb
No known key found for this signature in database
GPG Key ID: EC3AB66D5D83B392
1 changed files with 10 additions and 6 deletions

View File

@ -124,8 +124,7 @@ async def run_skynet_telegram(
await bot.send_photo( await bot.send_photo(
GROUP_ID, GROUP_ID,
caption=prepare_metainfo_caption(message.from_user, result['meta']['meta']), caption=prepare_metainfo_caption(message.from_user, result['meta']['meta']),
photo=img, photo=img
reply_to_message_id=message.id
) )
return return
@ -173,13 +172,19 @@ async def run_skynet_telegram(
await bot.send_photo( await bot.send_photo(
GROUP_ID, GROUP_ID,
caption=prepare_metainfo_caption(message.from_user, result['meta']['meta']), caption=prepare_metainfo_caption(message.from_user, result['meta']['meta']),
photo=img, photo=img
reply_to_message_id=message.id
) )
return return
await bot.reply_to(message, resp_txt) await bot.reply_to(message, resp_txt)
@bot.message_handler(commands=['img2img'])
async def redo_txt2img(message):
await bot.reply_to(
message,
'seems you tried to do an img2img command without sending image'
)
@bot.message_handler(commands=['redo']) @bot.message_handler(commands=['redo'])
async def redo_txt2img(message): async def redo_txt2img(message):
chat = message.chat chat = message.chat
@ -202,8 +207,7 @@ async def run_skynet_telegram(
await bot.send_photo( await bot.send_photo(
GROUP_ID, GROUP_ID,
caption=prepare_metainfo_caption(message.from_user, result['meta']['meta']), caption=prepare_metainfo_caption(message.from_user, result['meta']['meta']),
photo=img, photo=img
reply_to_message_id=message.id
) )
return return