| | |
| | |
| | |
| | |
| | |
| | |
| |
|
| | import re |
| |
|
| | from . import * |
| |
|
| | STRINGS = { |
| | 1: """π **Thanks for Deploying Ultroid Userbot!** |
| | |
| | β’ Here, are the Some Basic stuff from, where you can Know, about its Usage.""", |
| | 2: """π** About Ultroid** |
| | |
| | π§Ώ Ultroid is Pluggable and powerful Telethon Userbot, made in Python from Scratch. It is Aimed to Increase Security along with Addition of Other Useful Features. |
| | |
| | β£ Made by **@TeamUltroid**""", |
| | 3: """**π‘β’ FAQs β’** |
| | |
| | -> [Username Tracker](https://t.me/UltroidUpdates/24) |
| | -> [Keeping Custom Addons Repo](https://t.me/UltroidUpdates/28) |
| | -> [Disabling Deploy message](https://t.me/UltroidUpdates/27) |
| | -> [Setting up TimeZone](https://t.me/UltroidUpdates/22) |
| | -> [About Inline PmPermit](https://t.me/UltroidUpdates/21) |
| | -> [About Dual Mode](https://t.me/UltroidUpdates/18) |
| | -> [Custom Thumbnail](https://t.me/UltroidUpdates/13) |
| | -> [About FullSudo](https://t.me/UltroidUpdates/11) |
| | -> [Setting Up PmBot](https://t.me/UltroidUpdates/2) |
| | -> [Also Check](https://t.me/UltroidUpdates/14) |
| | |
| | **β’ To Know About Updates** |
| | - Join @TeamUltroid.""", |
| | 4: f"""β’ `To Know All Available Commands` |
| | |
| | - `{HNDLR}help` |
| | - `{HNDLR}cmds`""", |
| | 5: """β’ **For Any Other Query or Suggestion** |
| | - Move to **@UltroidSupportChat**. |
| | |
| | β’ Thanks for Reaching till END.""", |
| | } |
| |
|
| |
|
| | @callback(re.compile("initft_(\\d+)")) |
| | async def init_depl(e): |
| | CURRENT = int(e.data_match.group(1)) |
| | if CURRENT == 5: |
| | return await e.edit( |
| | STRINGS[5], |
| | buttons=Button.inline("<< Back", "initbk_4"), |
| | link_preview=False, |
| | ) |
| |
|
| | await e.edit( |
| | STRINGS[CURRENT], |
| | buttons=[ |
| | Button.inline("<<", f"initbk_{str(CURRENT - 1)}"), |
| | Button.inline(">>", f"initft_{str(CURRENT + 1)}"), |
| | ], |
| | link_preview=False, |
| | ) |
| |
|
| |
|
| | @callback(re.compile("initbk_(\\d+)")) |
| | async def ineiq(e): |
| | CURRENT = int(e.data_match.group(1)) |
| | if CURRENT == 1: |
| | return await e.edit( |
| | STRINGS[1], |
| | buttons=Button.inline("Start Back >>", "initft_2"), |
| | link_preview=False, |
| | ) |
| |
|
| | await e.edit( |
| | STRINGS[CURRENT], |
| | buttons=[ |
| | Button.inline("<<", f"initbk_{str(CURRENT - 1)}"), |
| | Button.inline(">>", f"initft_{str(CURRENT + 1)}"), |
| | ], |
| | link_preview=False, |
| | ) |
| |
|