Files
Ultroid-fork/assistant/initial.py
Devesh Pal 0df53caf4c Ultroid v0.3 Updates
Co-authored-by: Aditya <xditya@ultroid.tech>
Co-authored-by: Danish <danish@ultroid.tech>
Co-authored-by: Amit Sharma <48654350+buddhhu@users.noreply.github.com>
Co-authored-by: TechiError <error@notavailable.live>
Co-authored-by: Avish Kumar <85635883+aviskumar@users.noreply.github.com>
Co-authored-by: Vɪɴᴀʏᴀᴋ Pᴀɴᴅᴇʏ <87496159+harpia-vieillot@users.noreply.github.com>
Co-authored-by: Shrimadhav U K <6317196+spechide@users.noreply.github.com>
Co-authored-by: Dark <darkbeamer.official@gmail.com>
Co-authored-by: Muhamad Risman Aziz <62795826+mrismanaziz@users.noreply.github.com>
Co-authored-by: Ashik Muhammed <84127769+MR-JINN-OF-TG@users.noreply.github.com>
Co-authored-by: MMETMA <79155572+MMETMA@users.noreply.github.com>
Co-authored-by: amirmehdinzri <94852182+amirmehdinzri@users.noreply.github.com>
2021-12-31 23:48:53 +05:30

83 lines
2.5 KiB
Python

# Ultroid - UserBot
# Copyright (C) 2021-2022 TeamUltroid
#
# This file is a part of < https://github.com/TeamUltroid/Ultroid/ >
# PLease read the GNU Affero General Public License in
# <https://www.github.com/TeamUltroid/Ultroid/blob/main/LICENSE/>.
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 @TheUltroid.""",
4: f"""• `To Know All Available Commands`
- `{HNDLR}help`
- `{HNDLR}cmds`""",
5: """• **For Any Other Query or Suggestion**
- Move to **@UltroidSupport**.
• 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_" + str(4)),
link_preview=False,
)
await e.edit(
STRINGS[CURRENT],
buttons=[
Button.inline("<<", "initbk_" + str(CURRENT - 1)),
Button.inline(">>", "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_" + str(2)),
link_preview=False,
)
await e.edit(
STRINGS[CURRENT],
buttons=[
Button.inline("<<", "initbk_" + str(CURRENT - 1)),
Button.inline(">>", "initft_" + str(CURRENT + 1)),
],
link_preview=False,
)