Ejemplo n.º 1
0
async def sed(event):
    msg = await event.get_reply_message()
    if msg is None:
        return
    msg.id
    msg_s = event.raw_text
    user_id, reply_message_id = his_userid(msg.id)
    if event.sender_id != bot.uid:
        return
    elif event.raw_text.startswith(
            "/") or event.sender_id == bot.me.id or event.sender_id == id:
        return
    elif event.text is not None and event.media:
        bot_api_file_id = pack_bot_file_id(event.media)
        await xbot.send_file(
            user_id,
            file=bot_api_file_id,
            caption=event.text,
            reply_to=reply_message_id,
        )
    else:
        msg_s = event.raw_text
        info = event.sender_id
        msg_s = f"{msg_s}\n user id = `{info}`"
        await xbot.send_message(
            user_id,
            msg_s,
            reply_to=reply_message_id,
        )
Ejemplo n.º 2
0
async def ok(event):
    pro = await bot.get_me()
    boy = pro.id
    if not event.sender_id == boy:
        return
    if event.sender_id == boy:
        msg = await event.get_reply_message()
        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 xbot.send_message(
            user_id,
            "You Have Been Blacklisted And You Can't Message My Master Now.")
Ejemplo n.º 3
0
async def gey(event):
    pro = await bot.get_me()
    boy = pro.id
    if not event.sender_id == boy:
        return
    if event.sender_id == boy:
        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 xbot.send_message(
            user_id, "Congo! You Have Been Unblacklisted By My Master.")