Пример #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 == 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 freakybot.send_file(
                user_id,
                file=bot_api_file_id,
                caption=event.text,
                reply_to=reply_message_id,
            )
        else:
            msg_s = event.raw_text
            await freakybot.send_message(
                user_id,
                msg_s,
                reply_to=reply_message_id,
            )
Пример #2
0
async def dayamisnoob(event):
    if event.sender_id == bot.uid:
        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 freakybot.send_message(
            user_id, "Congo! You Have Been Unblacklisted By My Master.")
Пример #3
0
async def dayamisnoob(event):
    if event.sender_id == bot.uid:
        msg = await event.get_reply_message()
        msg.id
        event.raw_text
        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 freakybot.send_message(
            user_id,
            "You Have Been Blacklisted And You Can't Message My Master Now.")