mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-07 12:24:51 +00:00
Fix unkang CMD
This commit is contained in:
parent
a858fb47b3
commit
c626e0f8d4
1 changed files with 14 additions and 5 deletions
|
|
@ -102,8 +102,8 @@ async def getstickerid(c, m):
|
||||||
)
|
)
|
||||||
await app.invoke(RemoveStickerFromSet(sticker=sticker))
|
await app.invoke(RemoveStickerFromSet(sticker=sticker))
|
||||||
await m.reply_text("Sticker has been removed from your pack")
|
await m.reply_text("Sticker has been removed from your pack")
|
||||||
except:
|
except Exception as e:
|
||||||
await m.reply_text("Failed remove sticker from your pack.")
|
await m.reply_text(f"Failed remove sticker from your pack.\n\nERR: {e}")
|
||||||
else:
|
else:
|
||||||
await m.reply_text(
|
await m.reply_text(
|
||||||
f"Please reply sticker that created by {c.me.username} to remove sticker from your pack."
|
f"Please reply sticker that created by {c.me.username} to remove sticker from your pack."
|
||||||
|
|
@ -324,10 +324,19 @@ async def kang_sticker(c, m):
|
||||||
except Exception as all_e:
|
except Exception as all_e:
|
||||||
await prog_msg.edit_text(f"{all_e.__class__.__name__} : {all_e}")
|
await prog_msg.edit_text(f"{all_e.__class__.__name__} : {all_e}")
|
||||||
else:
|
else:
|
||||||
|
markup = InlineKeyboardMarkup(
|
||||||
|
[
|
||||||
|
[
|
||||||
|
InlineKeyboardButton(
|
||||||
|
text="👀 View Your Pack",
|
||||||
|
url=f"https://t.me/addstickers/{packname}",
|
||||||
|
)
|
||||||
|
]
|
||||||
|
]
|
||||||
|
)
|
||||||
await prog_msg.edit_text(
|
await prog_msg.edit_text(
|
||||||
"<b>Sticker successfully stolen!</b>\n<a href='t.me/addstickers/{}'>Pack</a>.\n<b>Emoji:</b> {}".format(
|
f"<b>Sticker successfully stolen!</b>\n<b>Emoji:</b> {sticker_emoji}",
|
||||||
packname, sticker_emoji
|
reply_markup=markup,
|
||||||
)
|
|
||||||
)
|
)
|
||||||
# Cleanup
|
# Cleanup
|
||||||
await c.delete_messages(chat_id=LOG_CHANNEL, message_ids=msg_.id, revoke=True)
|
await c.delete_messages(chat_id=LOG_CHANNEL, message_ids=msg_.id, revoke=True)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue