|
1 | 1 |
|
2 | 2 | from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton |
3 | 3 |
|
4 | | -# Buttons used |
5 | 4 |
|
6 | 5 | home_button = [ |
7 | | - [InlineKeyboardButton("🌏 Source", "source_btn"), |
8 | | - InlineKeyboardButton("⬇️ Fr. Id", "from_btn"), |
9 | | - InlineKeyboardButton("❓ Help", url="https://telegra.ph/Clonebot-UI-Help-05-30")], |
10 | | - [InlineKeyboardButton("🎯 Target", "target_btn"), |
11 | | - InlineKeyboardButton("⬆️ To Id", "up_to_btn"), |
12 | | - InlineKeyboardButton("Types ➡", "types_btn")], |
13 | | - [InlineKeyboardButton("Delayed", "delay_btn"), |
14 | | - InlineKeyboardButton("Caption", "caption_btn"), |
15 | | - InlineKeyboardButton("FNAC", "f_caption_btn")], |
16 | | - [InlineKeyboardButton("🔎️ View", "view_btn"), |
17 | | - InlineKeyboardButton("🚮 Reset", "rst_btn"), |
18 | | - InlineKeyboardButton("❌ Close", "close_btn")], |
19 | | - [InlineKeyboardButton("🚦 Clone Medias 🚦", "clone_btn")] |
| 6 | + [ |
| 7 | + InlineKeyboardButton("🌏 Source", "source_btn"), |
| 8 | + InlineKeyboardButton("⬇️ Fr. Id", "from_btn"), |
| 9 | + InlineKeyboardButton("❓ Help", url="https://bit.ly/3z2jquF") |
| 10 | + ], |
| 11 | + [ |
| 12 | + InlineKeyboardButton("🎯 Target", "target_btn"), |
| 13 | + InlineKeyboardButton("⬆️ To Id", "up_to_btn"), |
| 14 | + InlineKeyboardButton("Types ➡", "types_btn") |
| 15 | + ], |
| 16 | + [ |
| 17 | + InlineKeyboardButton("Delayed", "delay_btn"), |
| 18 | + InlineKeyboardButton("Caption", "caption_btn"), |
| 19 | + InlineKeyboardButton("FNAC", "f_caption_btn") |
| 20 | + ], |
| 21 | + [ |
| 22 | + InlineKeyboardButton("🔎️ View", "view_btn"), |
| 23 | + InlineKeyboardButton("✍️ CC", "cust_captn_btn"), |
| 24 | + InlineKeyboardButton("❌ Close", "close_btn") |
| 25 | + ], |
| 26 | + [ |
| 27 | + InlineKeyboardButton("🗑 Reset", "rst_btn"), |
| 28 | + InlineKeyboardButton("🔄 Restart", "restart_btn") |
| 29 | + ], |
| 30 | + [ |
| 31 | + InlineKeyboardButton("🚦 Clone Messages 🚦", "clone_btn") |
| 32 | + ] |
20 | 33 | ] |
21 | 34 |
|
22 | 35 |
|
23 | 36 | start_button = [ |
24 | | - [InlineKeyboardButton("🏅 GitHub 🏅", url="github.com/m4mallu/clonebot"), |
25 | | - InlineKeyboardButton("⚙️Settings ⚙", "start_btn")] |
| 37 | + [ |
| 38 | + InlineKeyboardButton("🏅 GitHub 🏅", url="github.com/m4mallu/clonebot"), |
| 39 | + InlineKeyboardButton("⚙️Settings ⚙", "start_btn") |
| 40 | + ] |
26 | 41 | ] |
27 | 42 |
|
28 | 43 |
|
29 | 44 | types_button = [ |
30 | | - [InlineKeyboardButton(" ⏺ Docs", "docs_btn"), |
31 | | - InlineKeyboardButton(" ⏺ Video", "video_btn"), |
32 | | - InlineKeyboardButton(" ⏺ Audio", "audio_btn")], |
33 | | - [InlineKeyboardButton(" ⏺ Photo", "photo_btn"), |
34 | | - InlineKeyboardButton(" ⏺ Voice", "voice_btn"), |
35 | | - InlineKeyboardButton("⚙️ View", "view_types")], |
36 | | - [InlineKeyboardButton("⬅️ Back", "start_btn")] |
| 45 | + [ |
| 46 | + InlineKeyboardButton("Docs ✅", "docs_yes_btn"), |
| 47 | + InlineKeyboardButton("Video ✅", "video_yes_btn"), |
| 48 | + InlineKeyboardButton("Audio ✅", "audio_yes_btn") |
| 49 | + ], |
| 50 | + [ |
| 51 | + InlineKeyboardButton("Photo ✅", "photo_yes_btn"), |
| 52 | + InlineKeyboardButton("Voice ✅", "voice_yes_btn"), |
| 53 | + InlineKeyboardButton("Text ✅", "text_yes_btn") |
| 54 | + ], |
| 55 | + [ |
| 56 | + InlineKeyboardButton("⚙️ View", "view_types"), |
| 57 | + InlineKeyboardButton("⬅️ Back", "start_btn") |
| 58 | + ] |
37 | 59 | ] |
38 | 60 |
|
39 | 61 |
|
40 | 62 | stop_button = [ |
41 | | - [InlineKeyboardButton("🚫 STOP 🚫", "stop_clone")] |
| 63 | + [ |
| 64 | + InlineKeyboardButton("🚫 STOP 🚫", "stop_clone") |
| 65 | + ] |
42 | 66 | ] |
43 | 67 |
|
44 | 68 |
|
45 | 69 | finished_button = [ |
46 | | - [InlineKeyboardButton("🏠 HOME", "start_btn"), |
47 | | - InlineKeyboardButton("❌ CLOSE", "close_btn")] |
| 70 | + [ |
| 71 | + InlineKeyboardButton("Home", "start_btn"), |
| 72 | + InlineKeyboardButton("Close", "close_btn") |
| 73 | + ] |
| 74 | +] |
| 75 | + |
| 76 | + |
| 77 | +close_button = [ |
| 78 | + [ |
| 79 | + InlineKeyboardButton("Delete", "close_btn"), |
| 80 | + InlineKeyboardButton("Close", "clear_btn") |
| 81 | + ] |
48 | 82 | ] |
49 | 83 |
|
50 | 84 |
|
51 | 85 | terminate_btn = [ |
52 | | - [InlineKeyboardButton("🧸 Updates", url="https://github.com/m4mallu/clonebot-ui"), |
53 | | - InlineKeyboardButton("❓ Usage", url="https://telegra.ph/Clonebot-UI-Help-05-30")], |
54 | | - [InlineKeyboardButton("🚫 Terminate", "terminate_btn"), |
55 | | - InlineKeyboardButton("🏠 Home", "start_btn")] |
| 86 | + [ |
| 87 | + InlineKeyboardButton("🧸 Updates", url="https://github.com/m4mallu/clonebot"), |
| 88 | + InlineKeyboardButton("❓ Usage", url="https://bit.ly/3z2jquF") |
| 89 | + ], |
| 90 | + [ |
| 91 | + InlineKeyboardButton("🚫 Terminate", "terminate_btn"), |
| 92 | + InlineKeyboardButton("🏠 Home", "start_btn") |
| 93 | + ] |
56 | 94 | ] |
57 | 95 |
|
| 96 | + |
58 | 97 | indexing_skip_button = [ |
59 | 98 | [ |
60 | 99 | InlineKeyboardButton("🕹 Skip", "index_skip_btn") |
61 | 100 | ] |
62 | 101 | ] |
63 | 102 |
|
| 103 | + |
64 | 104 | purging_skip_button = [ |
65 | 105 | [ |
66 | 106 | InlineKeyboardButton("🕹 Skip", "purge_skip_btn") |
67 | 107 | ] |
68 | 108 | ] |
69 | 109 |
|
| 110 | + |
70 | 111 | purge_button = [ |
71 | 112 | [ |
72 | 113 | InlineKeyboardButton("Nop", "purge_no_btn"), |
73 | 114 | InlineKeyboardButton("Purge it 👍", "purge_yes_btn") |
74 | 115 | ] |
75 | 116 | ] |
76 | 117 |
|
77 | | -# markups used |
| 118 | +caption_cnf_button = [ |
| 119 | + [ |
| 120 | + InlineKeyboardButton("YES ✅", "capt_cnf_yes_btn"), |
| 121 | + InlineKeyboardButton("NO ❌", "capt_cnf_no_btn") |
| 122 | + ] |
| 123 | +] |
| 124 | + |
78 | 125 |
|
79 | 126 | reply_markup_purge = InlineKeyboardMarkup(purge_button) |
80 | 127 |
|
|
93 | 140 | reply_markup_finished = InlineKeyboardMarkup(finished_button) |
94 | 141 |
|
95 | 142 | reply_markup_types_button = InlineKeyboardMarkup(types_button) |
| 143 | + |
| 144 | +reply_markup_close = InlineKeyboardMarkup(close_button) |
| 145 | + |
| 146 | +reply_markup_cap_cnf = InlineKeyboardMarkup(caption_cnf_button) |
0 commit comments