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(
GROUP_ID,
caption=prepare_metainfo_caption(message.from_user, result['meta']['meta']),
photo=img,
reply_to_message_id=message.id
photo=img
)
return
@ -173,13 +172,19 @@ async def run_skynet_telegram(
await bot.send_photo(
GROUP_ID,
caption=prepare_metainfo_caption(message.from_user, result['meta']['meta']),
photo=img,
reply_to_message_id=message.id
photo=img
)
return
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'])
async def redo_txt2img(message):
chat = message.chat
@ -202,8 +207,7 @@ async def run_skynet_telegram(
await bot.send_photo(
GROUP_ID,
caption=prepare_metainfo_caption(message.from_user, result['meta']['meta']),
photo=img,
reply_to_message_id=message.id
photo=img
)
return