Team Ai
Apppublic

azils3/bash

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
_ultroid.py67 linesDownload Raw Back to plugins
1# Ultroid - UserBot2# Copyright (C) 2021-2025 TeamUltroid3#4# This file is a part of < https://github.com/TeamUltroid/Ultroid/ >5# PLease read the GNU Affero General Public License in6# <https://www.github.com/TeamUltroid/Ultroid/blob/main/LICENSE/>.7 8from telethon.errors import (9    BotMethodInvalidError,10    ChatSendInlineForbiddenError,11    ChatSendMediaForbiddenError,12)13 14from . import LOG_CHANNEL, LOGS, Button, asst, eor, get_string, ultroid_cmd15 16REPOMSG = """17• **ULTROID USERBOT** •\n18• Repo - [Click Here](https://github.com/TeamUltroid/Ultroid)19• Addons - [Click Here](https://github.com/TeamUltroid/UltroidAddons)20• Support - @UltroidSupportChat21"""22 23RP_BUTTONS = [24    [25        Button.url(get_string("bot_3"), "https://github.com/TeamUltroid/Ultroid"),26        Button.url("Addons", "https://github.com/TeamUltroid/UltroidAddons"),27    ],28    [Button.url("Support Group", "t.me/UltroidSupportChat")],29]30 31ULTSTRING = """🎇 **Thanks for Deploying Ultroid Userbot!**32 33• Here, are the Some Basic stuff from, where you can Know, about its Usage."""34 35 36@ultroid_cmd(37    pattern="repo$",38    manager=True,39)40async def repify(e):41    try:42        q = await e.client.inline_query(asst.me.username, "")43        await q[0].click(e.chat_id)44        return await e.delete()45    except (46        ChatSendInlineForbiddenError,47        ChatSendMediaForbiddenError,48        BotMethodInvalidError,49    ):50        pass51    except Exception as er:52        LOGS.info(f"Error while repo command : {str(er)}")53    await e.eor(REPOMSG)54 55 56@ultroid_cmd(pattern="ultroid$")57async def useUltroid(rs):58    button = Button.inline("Start >>", "initft_2")59    msg = await asst.send_message(60        LOG_CHANNEL,61        ULTSTRING,62        file="https://graph.org/file/54a917cc9dbb94733ea5f.jpg",63        buttons=button,64    )65    if not (rs.chat_id == LOG_CHANNEL and rs.client._bot):66        await eor(rs, f"**[Click Here]({msg.message_link})**")67