Exemple #1
0
async def lol(ult):
    pic = udB.get("ALIVE_PIC")
    uptime = time_formatter((time.time() - start_time) * 1000)
    header = udB.get("ALIVE_TEXT") or "Hey,  I am alive."
    y = Repo().active_branch
    xx = Repo().remotes[0].config_reader.get("url")
    rep = xx.replace(".git", f"/tree/{y}")
    kk = f" `[{y}]({rep})` "
    als = (get_string("alive_1")).format(
        header,
        OWNER_NAME,
        ultroid_version,
        UltVer,
        uptime,
        pyver(),
        __version__,
        kk,
    )
    if pic is None:
        await eor(ult, als)
    elif "telegra" in pic:
        try:
            await ult.reply(als, file=pic, link_preview=False)
            await ult.delete()
        except ChatSendMediaForbiddenError:
            await eor(ult, als, link_preview=False)
    else:
        try:
            await ult.reply(file=pic)
            await ult.reply(als, link_preview=False)
            await ult.delete()
        except ChatSendMediaForbiddenError:
            await eor(ult, als, link_preview=False)
Exemple #2
0
async def is_on(ult):
    if not ult.client._bot:
        await ult.delete()
        try:
            res = await ult.client.inline_query(asst.me.username, "alive")
            return await res[0].click(ult.chat_id)
        except Exception as er:
            LOGS.info(er)
        return
    pic = udB.get("ALIVE_PIC")
    uptime = time_formatter((time.time() - start_time) * 1000)
    header = udB.get("ALIVE_TEXT") or "Hey,  I am alive."
    y = Repo().active_branch
    xx = Repo().remotes[0].config_reader.get("url")
    rep = xx.replace(".git", f"/tree/{y}")
    kk = f" `[{y}]({rep})` "
    als = (get_string("alive_1")).format(
        header,
        OWNER_NAME,
        ultroid_version,
        UltVer,
        uptime,
        pyver(),
        __version__,
        kk,
    )
    buttons = [
        [Button.inline("Stats", "alive")],
        [
            Button.url("Repo", "https://github.com/TeamUltroid/Ultroid"),
            Button.url("Support", "t.me/UltroidSupport"),
        ],
    ]
    await ult.client.send_message(ult.chat_id, als, file=pic, buttons=buttons)
Exemple #3
0
async def lol(ult):
    pic = udB.get("ALIVE_PIC")
    uptime = grt(time.time() - start_time)
    header = udB.get("ALIVE_TEXT") if udB.get(
        "ALIVE_TEXT") else "Hey,  I am alive."
    y = Repo().active_branch
    xx = Repo().remotes[0].config_reader.get("url")
    rep = xx.replace(".git", f"/tree/{y}")
    kk = f" `[{y}]({rep})` "
    als = (get_string("alive_1")).format(
        header,
        OWNER_NAME,
        ultroid_version,
        UltVer,
        uptime,
        pyver(),
        __version__,
        kk,
    )
    if pic is None:
        return await eor(ult, als)
    elif pic is not None and "telegra" in pic:
        try:
            await ult.reply(als, file=pic)
            await ult.delete()
        except ChatSendMediaForbiddenError:
            await eor(ult, als)
    else:
        try:
            await ultroid_bot.send_message(ult.chat_id, file=pic)
            await ultroid_bot.send_message(ult.chat_id, als)
            await ult.delete()
        except ChatSendMediaForbiddenError:
            await eor(ult, als)
Exemple #4
0
async def lol(ult):
    pic = udB.get("ALIVE_PIC")
    uptime = grt((time.time() - start_time))
    header = udB.get("ALIVE_TEXT") if udB.get("ALIVE_TEXT") else "Hey,  I am alive."
    als = """
**The Ultroid Userbot...**

**{}**

┏━━━━━━━━━━━━━━━━━━━━━
┣ **Owner** - `{}`
┣ **Version** - `{}`
┣ **UpTime** - `{}`
┣ **Python** - `{}`
┣ **Telethon** - `{}`
┣ **Branch** - `{}`
┗━━━━━━━━━━━━━━━━━━━━━
""".format(
        header,
        OWNER_NAME,
        ultroid_version,
        uptime,
        pyver(),
        __version__,
        Repo().active_branch,
    )
    if pic is None:
        await ult.edit(als)
    elif pic is not None and "telegra" in pic:
        await ult.delete()
        await ult.reply(als, file=pic)
    else:
        await ult.delete()
        await ultroid_bot.send_message(ult.chat_id, file=pic)
        await ultroid_bot.send_message(ult.chat_id, als)
Exemple #5
0
async def e(o):
    if len(o.text) == 0:
        b = o.builder
        uptime = grt((time.time() - start_time))
        ALIVEMSG = get_string("alive_1").format(
            OWNER_NAME,
            ultroid_version,
            uptime,
            pyver(),
            __version__,
            Repo().active_branch,
        )
        res = [
            b.article(
                title="Ultroid Userbot",
                url="https://t.me/TeamUltroid",
                description="Userbot | Telethon ",
                text=ALIVEMSG,
                thumb=InputWebDocument(ULTROID_PIC, 0, "image/jpeg", []),
                buttons=[
                    [
                        Button.url(text="Support Group",
                                   url="t.me/UltroidSupport")
                    ],
                    [
                        Button.url(
                            text="Repo",
                            url="https://github.com/Teamultroid/Ultroid")
                    ],
                ],
            )
        ]
        await o.answer(res,
                       switch_pm=f"👥 ULTROID PORTAL",
                       switch_pm_param="start")
Exemple #6
0
async def lol(ult):
    match = ult.pattern_match.group(1)
    inline = None
    if match in ["inline", "i"]:
        try:
            res = await ult.client.inline_query(asst.me.username, "alive")
            return await res[0].click(ult.chat_id)
        except BotMethodInvalidError:
            pass
        except BaseException as er:
            LOGS.exception(er)
        inline = True
    pic = udB.get_key("ALIVE_PIC")
    uptime = time_formatter((time.time() - start_time) * 1000)
    header = udB.get_key("ALIVE_TEXT") or get_string("bot_1")
    y = Repo().active_branch
    xx = Repo().remotes[0].config_reader.get("url")
    rep = xx.replace(".git", f"/tree/{y}")
    kk = f" `[{y}]({rep})` "
    if inline:
        kk = f"<a href={rep}>{y}</a>"
        parse = "html"
        als = in_alive.format(
            header,
            ultroid_version,
            UltVer,
            pyver(),
            uptime,
            kk,
        )
        if _e := udB.get_key("ALIVE_EMOJI"):
            als = als.replace("🌀", _e)
Exemple #7
0
async def e(o):
    if len(o.text) == 0:
        b = o.builder
        uptime = grt((time.time() - start_time))
        ALIVEMSG = """
**The Ultra Userbot...**\n\n
✵ **Owner** - `{}`
✵ **UpTime** - `{}`
✵ **Python** - `{}`
✵ **Telethon** - `{}`
✵ **Branch** - `{}`
""".format(
            OWNER_NAME,
            uptime,
            pyver(),
            __version__,
            Repo(https://github.com/Khushmeet-op/Ultrabot).active_branch,
        )
        res = [
            b.article(
                title="Ultra Userbot",
                url="https://t.me/Movies_hubs_1",
                description="Userbot | Telethon ",
                text=ALIVEMSG,
                thumb=InputWebDocument(ULTROID_PIC, 0, "image/jpeg", []),
            )
        ]
        await o.answer(res, switch_pm=f"👥 ULTROID PORTAL", switch_pm_param="start")
Exemple #8
0
async def e(o):
    if len(o.text) == 0:
        b = o.builder
        uptime = grt((time.time() - start_time))
        ALIVEMSG = """
"**  𝑾𝒉𝒊𝒕𝒆 𝑫𝒆𝒗𝒊𝒍 𝑰𝒔 𝑶𝒏𝒍𝒊𝒏𝒆**\n\n"
 "**Yes Master, Am Alive And Systems Are Working Perfectly As It Should Be...**\n\n"
 "✘ About My System ✘\n\n"
**ᴛᴇʟᴇᴛʜᴏɴ ᴠᴇʀꜱɪᴏɴ** ☞ {version.__version__}\n"
**ꜱᴜᴘᴘᴏʀᴛ ᴄʜᴀɴɴᴇʟ** ☞ [ᴊᴏɪɴ](https://t.me/WhiteDevilUserBot)\n"
**ʟɪᴄᴇɴꜱᴇ**  ☞ [ᴛᴇᴀᴍ ᴡʜɪᴛᴇ](https://github.com/DARK-COBRA)\n"
**ᴄᴏᴘʏʀɪɢʜᴛ ʙʏ**☞ [ᴡʜɪᴛᴇ-ᴅᴇᴠɪʟ](https://github.com/Deviilboi/WhiteDevil)\n\n"
**ᴜᴘᴛɪᴍᴇ**    ☞ {uptime}\n\n"
**ᴍʏ ᴍᴀsᴛᴇʀ** ☞ [{DEFAULTUSER}](tg://user?id={ghanti})\n"
**ᴄʀᴇᴀᴛᴏʀ** ☞ [ᴄʀᴇᴀᴛᴏʀ](https://t.me/theshashank)\n"
""".format(
            OWNER_NAME,
            ultroid_version,
            uptime,
            pyver(),
            __version__,
            Repo().active_branch,
        )
        res = [
            b.article(
                title="White Devil",
                url="https://t.me/WhiteDeviluserbot",
                description="Userbot | Telethon ",
                text=ALIVEMSG,
                thumb=InputWebDocument(ULTROID_PIC, 0, "image/jpeg", []),
            )
        ]
        await o.answer(res,
                       switch_pm=f"👥 Devil Portal",
                       switch_pm_param="start")
Exemple #9
0
async def inline_alive(ult):
    pic = udB.get("ALIVE_PIC")
    uptime = time_formatter((time.time() - start_time) * 1000)
    header = udB.get("ALIVE_TEXT") or get_string("bot_1")
    y = Repo().active_branch
    xx = Repo().remotes[0].config_reader.get("url")
    rep = xx.replace(".git", f"/tree/{y}")
    kk = f" `[{y}]({rep})` "
    als = (get_string("alive_1")).format(
        header,
        OWNER_NAME,
        ultroid_version,
        UltVer,
        uptime,
        pyver(),
        __version__,
        kk,
    )
    buttons = [
        [
            Button.url(get_string("bot_3"), "https://github.com/TeamUltroid/Ultroid"),
            Button.url(get_string("bot_4"), "t.me/UltroidSupport"),
        ]
    ]
    builder = ult.builder
    if pic:
        try:
            if ".jpg" in pic:
                results = [await builder.photo(pic, text=als, buttons=buttons)]
            else:
                _pic = resolve_bot_file_id(pic)
                if _pic:
                    pic = _pic
                    buttons.insert(
                        0, [Button.inline(get_string("bot_2"), data="alive")]
                    )
                results = [
                    await builder.document(
                        pic,
                        title="Inline Alive",
                        description="@TheUltroid",
                        buttons=buttons,
                    )
                ]
            return await ult.answer(results)
        except BaseException as er:
            LOGS.info(er)
    result = [
        await builder.article("Alive", text=als, link_preview=False, buttons=buttons)
    ]
    await ult.answer(result)
Exemple #10
0
async def inline_alive(ult):
    pic = udB.get_key("ALIVE_PIC")
    uptime = time_formatter((time.time() - start_time) * 1000)
    header = udB.get_key("ALIVE_TEXT") or get_string("bot_1")
    y = Repo().active_branch
    xx = Repo().remotes[0].config_reader.get("url")
    rep = xx.replace(".git", f"/tree/{y}")
    kk = f"<a href={rep}>{y}</a>"
    als = in_alive.format(
        header,
        ultroid_version,
        UltVer,
        pyver(),
        uptime,
        kk,
    )
    if _e := udB.get_key("ALIVE_EMOJI"):
        als = als.replace("🌀", _e)
Exemple #11
0
async def e(o):
    if len(o.text) == 0:
        b = o.builder
        uptime = grt(time.time() - start_time)
        header = udB.get("ALIVE_TEXT") if udB.get(
            "ALIVE_TEXT") else "Hallo, Saya hidup."
        ALIVEMSG = ("**{}**\n\n"
                    "┏━━━━━━━━━━━━━━━━━━━━━\n"
                    "┣ **Pemilik** - `{}`\n"
                    "┣ **Versi** - `{}`\n"
                    "┣ **Versi pyking** - `{}`\n"
                    "┣ **UpTime** - `{}`\n"
                    "┣ **Python** - `{}`\n"
                    "┣ **Telethon** - `{}`\n"
                    "┣ **Branch** - `{}`\n"
                    "┗━━━━━━━━━━━━━━━━━━━━━").format(
                        header,
                        OWNER_NAME,
                        king_version,
                        KingVer,
                        uptime,
                        pyver(),
                        __version__,
                        Repo().active_branch,
                    )
        ress = [
            await b.article(
                title="King-Userbot",
                url="https://t.me/TeamKingUserbot",
                description="Userbot | Telethon ",
                text=ALIVEMSG,
                thumb=InputWebDocument(BOT_PIC, 0, "image/jpeg", []),
                buttons=[
                    [
                        Button.url(text="Grup Support",
                                   url="t.me/KingUserbotSupport")
                    ],
                    [Button.url(text="Repository", url="https://github.com")],
                ])
        ]
        await o.answer(ress,
                       switch_pm=f"KingUserbot Portal",
                       switch_pm_param="start")
Exemple #12
0
async def e(o):
    if len(o.text) == 0:
        b = o.builder
        uptime = grt((time.time() - start_time))
        ALIVEMSG = """
**Yahaha Wahyu...**\n
━━━━━ • ✿ • ━━━━━
✵ **Owner** - `{}`
✵ **Version** - `{}`
✵ **UpTime** - `{}`
✵ **Python** - `{}`
✵ **Telethon** - `{}`
✵ **Branch** - `{}`
━━━━━ • ✿ • ━━━━━
""".format(
            OWNER_NAME,
            ultroid_version,
            uptime,
            pyver(),
            __version__,
            Repo().active_branch,
        )
        res = [
            b.article(
                title="Callystaa",
                url="https://t.me/Sihyeon3",
                description="Why | Try ",
                text=ALIVEMSG,
                thumb=InputWebDocument(ULTROID_PIC, 0, "image/jpeg", []),
                buttons=[
                    [
                        Button.url(text="Support Group",
                                   url="t.me/joinchat/WBMKhp4g42xF_b1B")
                    ],
                    [Button.url(text="Contact", url="https://t.me/Sihyeon3")],
                ],
            )
        ]
        await o.answer(res,
                       switch_pm=f"🌀 PORTAL ISEKAI",
                       switch_pm_param="start")
async def lol(ult):
    pic = udB.get("ALIVE_PIC")
    uptime = grt((time.time() - start_time))
    header = udB.get("ALIVE_TEXT") if udB.get(
        "ALIVE_TEXT") else "Hey,  I am alive."
    als = (get_string("alive_1")).format(
        header,
        OWNER_NAME,
        ultroid_version,
        uptime,
        pyver(),
        __version__,
        Repo().active_branch,
    )
    if pic is None:
        await ult.edit(als)
    elif pic is not None and "telegra" in pic:
        await ult.delete()
        await ult.reply(als, file=pic)
    else:
        await ult.delete()
        await ultroid_bot.send_message(ult.chat_id, file=pic)
        await ultroid_bot.send_message(ult.chat_id, als)
Exemple #14
0
async def e(o):
    if len(o.text) == 0:
        b = o.builder
        uptime = grt(time.time() - start_time)
        header = udB.get("ALIVE_TEXT") if udB.get(
            "ALIVE_TEXT") else "Hey,  I am Jinda,Sota nh hu m 🤣."
        ALIVEMSG = get_string("alive_1").format(
            header,
            OWNER_NAME,
            ultroid_version,
            UltVer,
            uptime,
            pyver(),
            __version__,
            Repo().active_branch,
        )
        res = [
            await b.article(
                title="Ultroid Userbot",
                url="https://t.me/TeamUltroid",
                description="Userbot | Telethon ",
                text=ALIVEMSG,
                thumb=InputWebDocument(ULTROID_PIC, 0, "image/jpeg", []),
                buttons=[
                    [Button.url(text="BlackForestSupport Group", url="t.me/")],
                    [
                        Button.url(
                            text="BlackForest",
                            url="",
                        ),
                    ],
                ],
            ),
        ]
        await o.answer(res,
                       switch_pm=f"👥 BlackForest PORTAL",
                       switch_pm_param="start")
Exemple #15
0
         UltVer,
         pyver(),
         uptime,
         kk,
     )
     if _e := udB.get_key("ALIVE_EMOJI"):
         als = als.replace("🌀", _e)
 else:
     parse = "md"
     als = (get_string("alive_1")).format(
         header,
         OWNER_NAME,
         ultroid_version,
         UltVer,
         uptime,
         pyver(),
         __version__,
         kk,
     )
     if a := udB.get_key("ALIVE_EMOJI"):
         als = als.replace("✵", a)
 if pic:
     try:
         await ult.reply(
             als,
             file=pic,
             parse_mode=parse,
             link_preview=False,
             buttons=buttons if inline else None,
         )
         await ult.try_delete()