Just for fun hehehe

This commit is contained in:
Yasir Aris M 2024-07-29 12:01:23 +07:00 committed by GitHub
parent 4cdaab408e
commit 6b50009666
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 6 deletions

View file

@ -126,12 +126,11 @@ async def log_file(_, ctx: Message, strings):
@app.on_message(filters.command(["donate"], COMMAND_HANDLER))
async def donate(self: Client, ctx: Message):
with contextlib.suppress(ReactionInvalid):
await ctx.react(emoji="❤️")
try:
await ctx.reply_photo(
"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",
message_effect_id=5159385139981059251 if ctx.chat.type.value == "private" else None
)
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.")

View file

@ -104,30 +104,34 @@ async def start(_, ctx: Message, strings):
strings("help_name").format(mod=HELPABLE[module].__MODULE__)
+ 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":
return await ctx.reply(
text=text,
reply_markup=FED_MARKUP,
disable_web_page_preview=True,
message_effect_id=5104841245755180586
)
await ctx.reply(
text,
reply_markup=InlineKeyboardMarkup(
[[InlineKeyboardButton("back", callback_data="help_back")]]
),
disable_web_page_preview=True)
disable_web_page_preview=True,
message_effect_id=5104841245755180586)
elif name == "help":
text, keyb = await help_parser(ctx.from_user.first_name)
await ctx.reply_msg(
text,
reply_markup=keyb,
message_effect_id=5104841245755180586
)
else:
await ctx.reply_photo(
photo="https://img.yasirweb.eu.org/file/90e9a448bc2f8b055b762.jpg",
caption=home_text_pm,
reply_markup=home_keyboard_pm,
message_effect_id=5104841245755180586
)
@ -138,6 +142,7 @@ async def commands_callbacc(_, cb: CallbackQuery):
cb.message.chat.id,
text=text,
reply_markup=keyb,
message_effect_id=5104841245755180586
)
await cb.message.delete_msg()
@ -180,18 +185,19 @@ async def help_command(_, ctx: Message, strings):
strings("help_name").format(mod=HELPABLE[name].__MODULE__)
+ 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:
text, help_keyboard = await help_parser(ctx.from_user.first_name)
await ctx.reply_msg(
text,
reply_markup=help_keyboard,
disable_web_page_preview=True,
message_effect_id=5104841245755180586
)
else:
text, help_keyboard = await help_parser(ctx.from_user.first_name)
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
)