Esempio n. 1
0
async def starky(event):
    if event.sender_id == Config.OWNER_ID:
        msg = await event.get_reply_message()
        msg.id
        event.raw_text
        user_id, reply_message_id = his_userid(msg.id)
    if not is_he_added(user_id):
        await event.reply("Not Even Blacklisted.")
    elif is_he_added(user_id):
        removenibba(user_id)
        await event.reply("DisBlacklisted This Dumb Person")
        await chatbot.send_message(
            user_id, "Congo! You Have Been Unblacklisted By My Master.")
        await chatbot.send_message(
            Config.DUMB_CHAT, f"DisBlacklisted User \nUser ID : {user_id}")
Esempio n. 2
0
async def starkisnoob(event):
    if event.sender_id == Config.OWNER_ID:
        msg = await event.get_reply_message()
        if msg is None:
            await event.reply("Reply To User")
        user_id, reply_message_id = his_userid(msg.id)
    if is_he_added(user_id):
        await event.reply("Already Blacklisted.")
    elif not is_he_added(user_id):
        add_nibba_in_db(user_id)
        await event.reply("Blacklisted This Dumb Person")
        await chatbot.send_message(
            user_id, "You Have Been Blacklisted And You Can't Message My Master Now."
        )
        await chatbot.send_message(Config.DUMB_CHAT, f"Blacklisted New user \nUser ID : {user_id}")
Esempio n. 3
0
async def sed(event):
    msg = await event.get_reply_message()
    if msg is None:
        return
    real_nigga = msg.id
    msg_s = event.raw_text
    user_id, reply_message_id = his_userid(
        msg.id
        )
    if event.sender_id == Config.OWNER_ID:
        if event.raw_text.startswith("/"):
            return
        if event.text is not None and event.media:
            bot_api_file_id = pack_bot_file_id(event.media)
            await chatbot.send_file(user_id, file=bot_api_file_id, caption=event.text, reply_to=reply_message_id)
        else:
            msg_s = event.raw_text
            await chatbot.send_message(
            user_id,
            msg_s,
            reply_to=reply_message_id,
            )