Exemple #1
0
async def start_all(event):
    if event.chat_id == OWNER_ID:
        return
    target = event.sender_id
    if present_in_userbase(target):
        pass
    else:
        try:
            add_to_userbase(target)
        except BaseException:
            pass
    if LOAD_MYBOT == "False":
        await tgbot.send_message(event.chat_id,
                                 startotherdis,
                                 buttons=[
                                     (Button.inline(
                                         "What can I do here?",
                                         data="wew"))]
                                 )
    elif LOAD_MYBOT == "True":
        await tgbot.send_message(event.chat_id,
                                 startotherena,
                                 buttons=[
                                     [Button.url(
                                         "TeleBot", url="https://github.com/xditya/TeleBot")],
                                     [Button.inline(
                                         "Whats this?", data="telebot")]
                                 ]
                                 )
Exemple #2
0
async def start_all(event):
    if event.chat_id == OWNER_ID:
        return
    target = event.sender_id
    if present_in_userbase(target):
        pass
    else:
        try:
            add_to_userbase(target)
        except BaseException:
            pass
    if LOAD_MYBOT == "False":
        if BOT_PIC:
            await tgbot.send_file(event.chat_id,
                                  BOT_PIC,
                                  caption=startotherdis,
                                  buttons=[
                                      (Button.inline("What can I do here?",
                                                     data="wew"))
                                  ])
        else:
            await tgbot.send_message(event.chat_id,
                                     startotherdis,
                                     buttons=[
                                         (Button.inline("What can I do here?",
                                                        data="wew"))
                                     ])
    elif LOAD_MYBOT == "True":
        if BOT_PIC:
            await tgbot.send_file(
                event.chat_id,
                BOT_PIC,
                caption=startotherena,
                buttons=[[
                    Button.url(
                        "ThunderX",
                        url="https://github.com/theshashankk/ThunderXRoBoT")
                ],
                         [
                             Button.inline("Whats this?",
                                           data="Cool Bot By @Theshashank")
                         ]])
        else:
            await tgbot.send_message(
                event.chat_id,
                startotherena,
                buttons=[[
                    Button.url(
                        "ThunderX",
                        url="https://github.com/theshashankk/ThunderXRoBoT")
                ],
                         [
                             Button.inline(
                                 "Whats this?",
                                 data="Buty fool bot by @TheShashank")
                         ]])
Exemple #3
0
async def start_all(event):
    if event.chat_id == OWNER_ID:
        return
    target = event.sender_id
    if present_in_userbase(target):
        pass
    else:
        try:
            add_to_userbase(target)
        except BaseException:
            pass
    if LOAD_MYBOT == "False":
        if BOT_PIC:
            await tgbot.send_file(event.chat_id,
                                  BOT_PIC,
                                  caption=startotherdis,
                                  buttons=[
                                      (Button.inline("What can I do here?",
                                                     data="wew"))
                                  ])
        else:
            await tgbot.send_message(event.chat_id,
                                     startotherdis,
                                     buttons=[
                                         (Button.inline("What can I do here?",
                                                        data="wew"))
                                     ])
    elif LOAD_MYBOT == "True":
        if BOT_PIC:
            await tgbot.send_file(
                event.chat_id,
                BOT_PIC,
                caption=startotherena,
                buttons=[[
                    Button.url("TEAM ERROR",
                               url="https://t.me/OFFICIALTEAMERROR")
                ], [Button.inline("Whats this?", data="telebot")]])
        else:
            await tgbot.send_message(
                event.chat_id,
                startotherena,
                buttons=[[
                    Button.url("TEAM ERROR",
                               url="https://t.me/OFFICIALTEAMERROR")
                ], [Button.inline("Whats this?", data="telebot")]])