mirror of https://github.com/skygpu/skynet.git
More tg tweaks
parent
122de1af9c
commit
5d6b3c2edb
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue