Files
Ultroid-fork/plugins/_ultroid.py
Danish 68839e9dd0 Ultroid v0.0.7 2021/05/22
Co-authored-by: New-dev0 <New-dev0@notavailable.live>
Co-authored-by: Danish <danish@ultroid.tech>
Co-authored-by: Amit Sharma <48654350+buddhhu@users.noreply.github.com>
Co-authored-by: Programming Error <error@notavailable.live>
Co-authored-by: Aakash <BLUE-DEVIL1134@users.noreply.github.com>
Co-authored-by: Aditya <me@xditya.me>
Co-authored-by: sppidy <sppidy@users.noreply.github.com>
Co-authored-by: Arnab Paryali <Arnabxd@users.noreply.github.com>
Co-authored-by: divkix <divkix@users.noreply.github.com>
Co-authored-by: hellboi_atul <hellboi-atul@users.noreply.github.com>
2021-05-22 22:21:41 +05:30

31 lines
954 B
Python

# Ultroid - UserBot
# Copyright (C) 2020 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/>.
from telethon.errors import ChatSendInlineForbiddenError
from telethon.errors.rpcerrorlist import BotMethodInvalidError as bmi
from . import *
REPOMSG = (
"• **ULTROID USERBOT** •\n\n",
"• Repo - [Click Here](https://github.com/TeamUltroid/Ultroid)\n",
"• Addons - [Click Here](https://github.com/TeamUltroid/UltroidAddons)\n",
"• Support - @UltroidSupport",
)
@ultroid_cmd(pattern="repo$")
async def repify(e):
try:
q = await ultroid_bot.inline_query(asst.me.username, "repo")
await q[0].click(e.chat_id)
if e.sender_id == ultroid_bot.uid:
await e.delete()
except (ChatSendInlineForbiddenError, bmi):
await eor(e, REPOMSG)