forked from mrismanaziz/File-Sharing-Man
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcbb.py
27 lines (23 loc) · 1.1 KB
/
cbb.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# (©)Codexbotz
# Recode by @mrismanaziz
# t.me/SharingUserbot & t.me/Lunatic0de
from pyrogram.types import CallbackQuery, InlineKeyboardButton, InlineKeyboardMarkup
from bot import Bot
from config import OWNER
@Bot.on_callback_query()
async def cb_handler(client: Bot, query: CallbackQuery):
data = query.data
if data == "about":
await query.message.edit_text(
text=f"<b>Tentang Bot ini:\n\n@{client.username} adalah Bot Telegram untuk menyimpan Postingan atau File yang dapat Diakses melalui Link Khusus.\n\n • Creator: @{OWNER}\n • Source Code: <a href='https://github.com/mrismanaziz/File-Sharing-Man'>File-Sharing-Man</a>\n • Owner Repo: @mrismanaziz\n\n👨💻 Develoved by @Lunatic0de</b>\n",
disable_web_page_preview=True,
reply_markup=InlineKeyboardMarkup(
[[InlineKeyboardButton("• ᴛᴜᴛᴜᴘ •", callback_data="close")]]
),
)
elif data == "close":
await query.message.delete()
try:
await query.message.reply_to_message.delete()
except BaseException:
pass