예제 #1
0
    async def block(event):

        if event.fwd_from:

            return

        replied_user = await borg(GetFullUserRequest(event.chat_id))

        firstname = replied_user.user.first_name

        chats = await event.get_chat()

        if event.is_private:

            if not lightning_sql.is_approved(chats.id):

                if chats.id in LIGHTNING_WRN:

                    del LIGHTNING_WRN[chats.id]

                if chats.id in LIGHTNING_REVL_MSG:

                    await LIGHTNING_REVL_MSG[chats.id].delete()

                    del LIGHTNING_REVL_MSG[chats.id]

                lightning_sql.approve(
                    chats.id, f"Wow lucky You {LIGHTNINGUSER} Approved You")

                await event.edit("Approved to pm [{}](tg://user?id={})".format(
                    firstname, chats.id))

                await asyncio.sleep(3)

                await event.delete()
예제 #2
0
async def krish_op(event):

    if event.fwd_from:

        return

    chats = await event.get_chat()

    if event.is_private:

        if not lightning_sql.is_approved(chats.id):

            lightning_sql.approve(chats.id, "**Heya Sir**")

            await borg.send_message(
                chats,
                f"**Good To See You master. How Can I Disapprove You Come In Sir**😄😄"
            )
예제 #3
0
async def krish_op(event):

    if event.fwd_from:

        return

    chats = await event.get_chat()

    if event.is_private:

        if not lightning_sql.is_approved(chats.id):

            lightning_sql.approve(chats.id, "**GOD FATHER IS HERE**")

            await borg.send_message(
                chats,
                "**Heya @LEGENDX YOU ARE MY CREATOR I APPROVED YOU SIR ❤️🥰🔥⚜️**"
            )
예제 #4
0
    async def lightning_approved_pm(event):

        if event.fwd_from:

            return

        replied_user = await event.client(GetFullUserRequest(event.chat_id))

        firstname = replied_user.user.first_name

        chat = await event.get_chat()

        if event.is_private:

            if lightning_sql.is_approved(chat.id):

                lightning_sql.disapprove(chat.id)

            await event.edit("Disapproved [{}](tg://user?id={})".format(
                firstname, chat.id))

            await asyncio.sleep(2)

            await event.edit(
                "Now Get Lost Retard [{}](tg://user?id={})".format(
                    firstname, chat.id))

            await asyncio.sleep(2)

            await event.edit("One Thing For You [{}](tg://user?id={})".format(
                firstname, chat.id))

            await asyncio.sleep(2)

            await event.edit("🖕 [{}](tg://user?id={})".format(
                firstname, chat.id))

            await asyncio.sleep(2)

            await event.edit("Disapproved User [{}](tg://user?id={})".format(
                firstname, chat.id))

            await event.delete()
예제 #5
0
    async def lightning_dm_niqq(event):

        if event.fwd_from:

            return

        chat = await event.get_chat()

        if event.is_private:

            if not lightning_sql.is_approved(chat.id):

                if not chat.id in LIGHTNING_WRN:

                    lightning_sql.approve(chat.id, "outgoing")

                    bruh = "Auto-approved bcuz outgoing 😗😗👍"

                    rko = await borg.send_message(event.chat_id, bruh)

                    await asyncio.sleep(3)

                    await rko.delete()
예제 #6
0
    async def lightning_new_msg(lightning):

        if lightning.sender_id == bot.uid:

            return

        if Var.PRIVATE_GROUP_ID is None:

            return

        if not lightning.is_private:

            return

        lightning_chats = lightning.message.message

        chat_ids = lightning.sender_id

        lightning_chats.lower()

        if OVER_POWER_WARN == lightning_chats:

            # lightning should not reply to other lightning

            # https://core.telegram.org/bots/faq#why-doesn-39t-my-bot-see-messages-from-other-bots

            return

        sender = await bot.get_entity(lightning.sender_id)

        if chat_ids == bot.uid:

            # don't log Saved Messages

            return

        if sender.bot:

            # don't log bots

            return

        if sender.verified:

            # don't log verified accounts

            return

        if LIGHTNING_PROTECTION == "NO":

            return

        if lightning_sql.is_approved(chat_ids):

            return

        if not lightning_sql.is_approved(chat_ids):

            # pm permit

            await lightning_goin_to_attack(chat_ids, lightning)