Пример #1
0
                        ),
                    ],
                    [
                        custom.Button.url(
                            "✨ REPO ✨", "https://github.com/lucifeermorningstar/Devil-User-Bot"),
                        custom.Button.url
                    (
                            "🔰 TUTORIAL 🔰", "https://t.me/DevilUserBot"
                    )
                    ],
                ],
                link_preview=False,
            )
        await event.answer([result] if result else None)

    @tgbot.on(callbackquery.CallbackQuery(data=compile(b"page\((.+?)\)")))
    async def page(event):
        if not event.query.user_id == bot.uid:
            return await event.answer(
                "Hoo gya aapka. Kabse tapar tapar dabae jaa rhe h. Khudka bna lo na agr chaiye to. © Dèvílẞø† ™",
                cache_time=0,
                alert=True,
            )
        page = int(event.data_match.group(1).decode("UTF-8"))
        veriler = button(page, CMD_HELP)
        await event.edit(
            f"**Legenday AF** [Dèvílẞøt](https://t.me/DevilUserBot) __Working...__\n\n**Number of modules installed :** `{len(CMD_HELP)}`\n**page:** {page + 1}/{veriler[0]}",
            buttons=veriler[1],
            link_preview=False,
        )
        
Пример #2
0
                        custom.Button.url("⚡ GROUP ⚡",
                                          "https://t.me/hellbot_chat"),
                    ],
                    [
                        custom.Button.url(
                            "✨ REPO ✨",
                            "https://github.com/The-HellBot/HellBot"),
                        custom.Button.url("🔰 TUTORIAL 🔰",
                                          "https://youtu.be/M2FQJq_sHp4")
                    ],
                ],
                link_preview=False,
            )
        await event.answer([result] if result else None)

    @tgbot.on(callbackquery.CallbackQuery(data=compile(b"pmclick")))
    async def on_pm_click(event):
        if event.query.user_id == bot.uid:
            reply_pop_up_alert = "This is for Other Users..."
            await event.answer(reply_pop_up_alert, cache_time=0, alert=True)
        else:
            await event.edit(
                f"🔰 This is Hêllẞø† PM Security for {hell_mention} to keep away unwanted retards from spamming PM..."
            )

    @tgbot.on(callbackquery.CallbackQuery(data=compile(b"req")))
    async def on_pm_click(event):
        if event.query.user_id == bot.uid:
            reply_pop_up_alert = "This is for other users!"
            await event.answer(reply_pop_up_alert, cache_time=0, alert=True)
        else:
Пример #3
0
Hesabınızı bot'a çevirebilirsiniz ve bunları kullanabilirsiniz. Unutmayın, siz başkasının botunu yönetemezsiniz! Alttaki GitHub adresinden tüm kurulum detayları anlatılmıştır.""",
                    buttons=[[
                        custom.Button.url("Kanala Katıl",
                                          "https://t.me/AsenaUserBot"),
                        custom.Button.url("Gruba Katıl",
                                          "https://t.me/AsenaSupport")
                    ],
                             [
                                 custom.Button.url(
                                     "GitHub",
                                     "https://github.com/quiec/AsenaUserBot")
                             ]],
                    link_preview=False)
            await event.answer([result] if result else None)

        @tgbot.on(callbackquery.CallbackQuery(data=compile(b"sayfa\((.+?)\)")))
        async def sayfa(event):
            if not event.query.user_id == uid:
                return await event.answer(
                    "❌ Hey! Benim mesajlarımı düzenlemeye kalkma! Kendine bir @AsenaUserBot kur.",
                    cache_time=0,
                    alert=True)
            sayfa = int(event.data_match.group(1).decode("UTF-8"))
            veriler = butonlastir(sayfa, CMD_HELP)
            await event.edit(
                f"**🐺 Tanrı Türk'ü Korusun!** [Asena](https://t.me/AsenaUserBot) __Çalışıyor...__\n\n**Yüklenen Modül Sayısı:** `{len(CMD_HELP)}`\n**Sayfa:** {sayfa + 1}/{veriler[0]}",
                buttons=veriler[1],
                link_preview=False)

        @tgbot.on(
            callbackquery.CallbackQuery(
Пример #4
0
from LEGENDBOT.utils import *
from userbot import *
from userbot import ALIVE_NAME
from userbot.cmdhelp import *
from userbot.Config import Config

LEGEND_row = Config.BUTTONS_IN_HELP
LEGEND_emoji = Config.EMOJI_IN_HELP1

from . import *

# main menu for api setting


@tgbot.on(callbackquery.CallbackQuery(data=compile(b"apiset")))
async def apiset(event):
    await event.edit(
        get_string("ast_1"),
        buttons=[
            [Button.inline("Remove.bg API", data="rmbg")],
            [Button.inline("DEEP API", data="dapi")],
            [Button.inline("OCR API", data="oapi")],
            [Button.inline("« Back", data="setter")],
        ],
    )


@tgbot.on(callbackquery.CallbackQuery(data=compile(b"rmbgapi")))
async def rmbgapi(event):
    await event.delete()