mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 09:44:50 +00:00
Just for fun hehehe
This commit is contained in:
parent
4cdaab408e
commit
6b50009666
2 changed files with 11 additions and 6 deletions
|
|
@ -126,12 +126,11 @@ async def log_file(_, ctx: Message, strings):
|
||||||
|
|
||||||
@app.on_message(filters.command(["donate"], COMMAND_HANDLER))
|
@app.on_message(filters.command(["donate"], COMMAND_HANDLER))
|
||||||
async def donate(self: Client, ctx: Message):
|
async def donate(self: Client, ctx: Message):
|
||||||
with contextlib.suppress(ReactionInvalid):
|
|
||||||
await ctx.react(emoji="❤️")
|
|
||||||
try:
|
try:
|
||||||
await ctx.reply_photo(
|
await ctx.reply_photo(
|
||||||
"https://img.yasirweb.eu.org/file/ee74ce527fb8264b54691.jpg",
|
"https://img.yasirweb.eu.org/file/ee74ce527fb8264b54691.jpg",
|
||||||
caption="Hi, If you find this bot useful, you can make a donation to the account below. Because this bot server uses VPS and is not free. Thank You..\n\n<b>Indonesian Payment:</b>\n<b>QRIS:</b> https://img.yasirweb.eu.org/file/ee74ce527fb8264b54691.jpg (Yasir Store)\n<b>Bank Jago:</b> 109641845083 (Yasir Aris M)\n\nFor international people can use PayPal to support me or via GitHub Sponsor:\nhttps://paypal.me/yasirarism\nhttps://github.com/sponsors/yasirarism\n\n<b>Source:</b> @BeriKopi",
|
caption="Hi, If you find this bot useful, you can make a donation to the account below. Because this bot server uses VPS and is not free. Thank You..\n\n<b>Indonesian Payment:</b>\n<b>QRIS:</b> https://img.yasirweb.eu.org/file/ee74ce527fb8264b54691.jpg (Yasir Store)\n<b>Bank Jago:</b> 109641845083 (Yasir Aris M)\n\nFor international people can use PayPal to support me or via GitHub Sponsor:\nhttps://paypal.me/yasirarism\nhttps://github.com/sponsors/yasirarism\n\n<b>Source:</b> @BeriKopi",
|
||||||
|
message_effect_id=5159385139981059251 if ctx.chat.type.value == "private" else None
|
||||||
)
|
)
|
||||||
except (ChatSendPlainForbidden, ChatSendPhotosForbidden):
|
except (ChatSendPlainForbidden, ChatSendPhotosForbidden):
|
||||||
await self.send_message(LOG_CHANNEL, f"❗️ <b>WARNING</b>\nI'm leaving from {ctx.chat.id} since i didn't have sufficient admin permissions.")
|
await self.send_message(LOG_CHANNEL, f"❗️ <b>WARNING</b>\nI'm leaving from {ctx.chat.id} since i didn't have sufficient admin permissions.")
|
||||||
|
|
|
||||||
|
|
@ -104,30 +104,34 @@ async def start(_, ctx: Message, strings):
|
||||||
strings("help_name").format(mod=HELPABLE[module].__MODULE__)
|
strings("help_name").format(mod=HELPABLE[module].__MODULE__)
|
||||||
+ HELPABLE[module].__HELP__
|
+ HELPABLE[module].__HELP__
|
||||||
)
|
)
|
||||||
await ctx.reply_msg(text, disable_web_page_preview=True)
|
await ctx.reply_msg(text, disable_web_page_preview=True, message_effect_id=5104841245755180586)
|
||||||
if module == "federation":
|
if module == "federation":
|
||||||
return await ctx.reply(
|
return await ctx.reply(
|
||||||
text=text,
|
text=text,
|
||||||
reply_markup=FED_MARKUP,
|
reply_markup=FED_MARKUP,
|
||||||
disable_web_page_preview=True,
|
disable_web_page_preview=True,
|
||||||
|
message_effect_id=5104841245755180586
|
||||||
)
|
)
|
||||||
await ctx.reply(
|
await ctx.reply(
|
||||||
text,
|
text,
|
||||||
reply_markup=InlineKeyboardMarkup(
|
reply_markup=InlineKeyboardMarkup(
|
||||||
[[InlineKeyboardButton("back", callback_data="help_back")]]
|
[[InlineKeyboardButton("back", callback_data="help_back")]]
|
||||||
),
|
),
|
||||||
disable_web_page_preview=True)
|
disable_web_page_preview=True,
|
||||||
|
message_effect_id=5104841245755180586)
|
||||||
elif name == "help":
|
elif name == "help":
|
||||||
text, keyb = await help_parser(ctx.from_user.first_name)
|
text, keyb = await help_parser(ctx.from_user.first_name)
|
||||||
await ctx.reply_msg(
|
await ctx.reply_msg(
|
||||||
text,
|
text,
|
||||||
reply_markup=keyb,
|
reply_markup=keyb,
|
||||||
|
message_effect_id=5104841245755180586
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
await ctx.reply_photo(
|
await ctx.reply_photo(
|
||||||
photo="https://img.yasirweb.eu.org/file/90e9a448bc2f8b055b762.jpg",
|
photo="https://img.yasirweb.eu.org/file/90e9a448bc2f8b055b762.jpg",
|
||||||
caption=home_text_pm,
|
caption=home_text_pm,
|
||||||
reply_markup=home_keyboard_pm,
|
reply_markup=home_keyboard_pm,
|
||||||
|
message_effect_id=5104841245755180586
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -138,6 +142,7 @@ async def commands_callbacc(_, cb: CallbackQuery):
|
||||||
cb.message.chat.id,
|
cb.message.chat.id,
|
||||||
text=text,
|
text=text,
|
||||||
reply_markup=keyb,
|
reply_markup=keyb,
|
||||||
|
message_effect_id=5104841245755180586
|
||||||
)
|
)
|
||||||
await cb.message.delete_msg()
|
await cb.message.delete_msg()
|
||||||
|
|
||||||
|
|
@ -180,18 +185,19 @@ async def help_command(_, ctx: Message, strings):
|
||||||
strings("help_name").format(mod=HELPABLE[name].__MODULE__)
|
strings("help_name").format(mod=HELPABLE[name].__MODULE__)
|
||||||
+ HELPABLE[name].__HELP__
|
+ HELPABLE[name].__HELP__
|
||||||
)
|
)
|
||||||
await ctx.reply_msg(text, disable_web_page_preview=True)
|
await ctx.reply_msg(text, disable_web_page_preview=True, message_effect_id=5104841245755180586)
|
||||||
else:
|
else:
|
||||||
text, help_keyboard = await help_parser(ctx.from_user.first_name)
|
text, help_keyboard = await help_parser(ctx.from_user.first_name)
|
||||||
await ctx.reply_msg(
|
await ctx.reply_msg(
|
||||||
text,
|
text,
|
||||||
reply_markup=help_keyboard,
|
reply_markup=help_keyboard,
|
||||||
disable_web_page_preview=True,
|
disable_web_page_preview=True,
|
||||||
|
message_effect_id=5104841245755180586
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
text, help_keyboard = await help_parser(ctx.from_user.first_name)
|
text, help_keyboard = await help_parser(ctx.from_user.first_name)
|
||||||
await ctx.reply_msg(
|
await ctx.reply_msg(
|
||||||
text, reply_markup=help_keyboard, disable_web_page_preview=True
|
text, reply_markup=help_keyboard, disable_web_page_preview=True, message_effect_id=5104841245755180586
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue