|
1 |
| -from pyrogram import Client, filters |
2 |
| -from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton |
3 |
| - |
4 |
| -from bot_strings import donate, hlp |
5 |
| - |
6 |
| - |
7 |
| -@Client.on_callback_query(filters.regex(r"donate")) |
8 |
| -async def etanod(c, m): |
9 |
| - keyboard = InlineKeyboardMarkup( |
10 |
| - inline_keyboard=[ |
11 |
| - [ |
12 |
| - InlineKeyboardButton(text="💵 PicPay", url="#"), |
13 |
| - InlineKeyboardButton(text="💵 PayPal", url="#"), |
14 |
| - ], |
15 |
| - [InlineKeyboardButton(text="💵 Pix", callback_data="gpix")], |
16 |
| - [InlineKeyboardButton(text="◀️ Voltar", callback_data="help")], |
17 |
| - ] |
18 |
| - ) |
19 |
| - await m.edit_message_text(donate, reply_markup=keyboard) |
20 |
| - |
21 |
| - |
22 |
| -@Client.on_callback_query(filters.regex(r"help")) |
23 |
| -async def pleh(c, m): |
24 |
| - keyvoard = InlineKeyboardMarkup( |
25 |
| - inline_keyboard=[ |
26 |
| - [InlineKeyboardButton(text="💵 Colabore", callback_data="donate")], |
27 |
| - [InlineKeyboardButton(text="💻 Meu desenvolvedor", url="t.me/khaledsecond")], |
28 |
| - [ |
29 |
| - InlineKeyboardButton( |
30 |
| - text="🔎 Consulte inline", switch_inline_query_current_chat="" |
31 |
| - ) |
32 |
| - ], |
33 |
| - ] |
34 |
| - ) |
35 |
| - await m.edit_message_text(hlp, reply_markup=keyvoard) |
36 |
| - |
37 |
| - |
38 |
| -@Client.on_callback_query(filters.regex(r"gpix")) |
39 |
| -async def xipg(c, m): |
40 |
| - keybaard = InlineKeyboardMarkup( |
41 |
| - inline_keyboard=[ |
42 |
| - [InlineKeyboardButton(text="🗑 Apagar mensagem", callback_data="delete")] |
43 |
| - ] |
44 |
| - ) |
45 |
| - await c.send_photo(m.message.chat.id, photo="#", caption="#", reply_markup=keybaard) |
46 |
| - |
47 |
| - |
48 |
| -@Client.on_callback_query(filters.regex(r"delete")) |
49 |
| -async def eteled(c, m): |
50 |
| - await c.delete_messages(m.message.chat.id, m.message.message_id) |
| 1 | +from pyrogram import Client, filters |
| 2 | +from pyrogram.types import CallbackQuery, InlineKeyboardButton, InlineKeyboardMarkup |
| 3 | + |
| 4 | +from ..bot_strings import donate, hlp |
| 5 | + |
| 6 | + |
| 7 | +@Client.on_callback_query(filters.regex(r"donate")) |
| 8 | +async def etanod(c: Client, m: CallbackQuery): |
| 9 | + keyboard = InlineKeyboardMarkup( |
| 10 | + inline_keyboard=[ |
| 11 | + [ |
| 12 | + InlineKeyboardButton(text="💵 PicPay", url="#"), |
| 13 | + InlineKeyboardButton(text="💵 PayPal", url="#"), |
| 14 | + ], |
| 15 | + [InlineKeyboardButton(text="💵 Pix", callback_data="gpix")], |
| 16 | + [InlineKeyboardButton(text="◀️ Voltar", callback_data="help")], |
| 17 | + ] |
| 18 | + ) |
| 19 | + await m.edit_message_text(donate, reply_markup=keyboard) |
| 20 | + |
| 21 | + |
| 22 | +@Client.on_callback_query(filters.regex(r"help")) |
| 23 | +async def pleh(c: Client, m: CallbackQuery): |
| 24 | + keyvoard = InlineKeyboardMarkup( |
| 25 | + inline_keyboard=[ |
| 26 | + [InlineKeyboardButton(text="💵 Colabore", callback_data="donate")], |
| 27 | + [InlineKeyboardButton(text="💻 Meu desenvolvedor", url="t.me/khaledsecond")], |
| 28 | + [ |
| 29 | + InlineKeyboardButton( |
| 30 | + text="🔎 Consulte inline", switch_inline_query_current_chat="" |
| 31 | + ) |
| 32 | + ], |
| 33 | + ] |
| 34 | + ) |
| 35 | + await m.edit_message_text(hlp, reply_markup=keyvoard) |
| 36 | + |
| 37 | + |
| 38 | +@Client.on_callback_query(filters.regex(r"gpix")) |
| 39 | +async def xipg(c: Client, m: CallbackQuery): |
| 40 | + keybaard = InlineKeyboardMarkup( |
| 41 | + inline_keyboard=[ |
| 42 | + [InlineKeyboardButton(text="🗑 Apagar mensagem", callback_data="delete")] |
| 43 | + ] |
| 44 | + ) |
| 45 | + await c.send_photo(m.message.chat.id, photo="#", caption="#", reply_markup=keybaard) |
| 46 | + |
| 47 | + |
| 48 | +@Client.on_callback_query(filters.regex(r"delete")) |
| 49 | +async def eteled(c: Client, m: CallbackQuery): |
| 50 | + await c.delete_messages(m.message.chat.id, m.message.message_id) |
0 commit comments