Exemplo n.º 1
0
async def starkisnoob(event):
    if event.sender_id == bot.uid:
        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 tgbot.send_message(
            user_id,
            "You Have Been Blacklisted And You Can't Message My Master Now.")
Exemplo n.º 2
0
async def starkisnoob(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 tgbot.send_message(
            user_id, "Congo! You Have Been Unblacklisted By My Master.")
Exemplo n.º 3
0
async def starkisnoob(event):
    if event.sender_id == bot.uid:
        msg = await event.get_reply_message()
        real_nigga = msg.id
        msg_s = 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("✅ Unblocked")
        await tgbot.send_message(user_id,
                                 "✅ You have been unblocked by an admin.")
Exemplo n.º 4
0
async def starkisnoob(event):
    if event.sender_id == bot.uid:
        msg = await event.get_reply_message()
        real_nigga = msg.id
        msg_s = 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.")
        await tgbot.send_message(user_id,
                                 "🚫 You have been blocked by an admin.")
async def starkisnoob(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("Bahkan tidak. Masuk daftar hitam 🤦🚶")
    elif is_he_added(user_id):
        removenibba(user_id)
        await event.reply("Lepaskan Orang Bodoh Ini dari Daftar Hitam")
        await tgbot.send_message(
            user_id,
            "Selamat! Anda Telah Dicabut Daftar Hitam Oleh Tuan Saya.")
async def starkisnoob(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):
        user_id, reply_message_id = his_userid(msg.id)
        await event.reply("Sudah Masuk Daftar Hitam")
    elif not is_he_added(user_id):
        add_nibba_in_db(user_id)
        await event.reply("Memasukkan Orang Bodoh Ini ke dalam daftar hitam")
        await tgbot.send_message(
            user_id,
            "Anda Telah Masuk Daftar Hitam Dan Anda Tidak Dapat Mengirim Pesan kepada Tuan Saya Sekarang."
        )
Exemplo n.º 7
0
async def all_messages_catcher(event):
    if is_he_added(event.sender_id):
        return
    if event.raw_text.startswith("/"):
        pass
    elif event.sender_id == bot.uid:
        return
    else:
        await event.get_sender()
        event.chat_id
        sed = await event.forward_to(bot.uid)
        add_me_in_db(sed.id, event.sender_id, event.id)
Exemplo n.º 8
0
async def all_messages_catcher(event):
    if is_he_added(event.sender_id):
        return
    if event.raw_text.startswith("/"):
        pass
    elif event.sender_id == bot.uid:
        return
    else:
        await event.get_sender()
        event.chat_id
        sed = await event.forward_to(bot.uid)
        # Add User To Database ,Later For Broadcast Purpose
        # (C) @SpecHide
        add_me_in_db(sed.id, event.sender_id, event.id)
Exemplo n.º 9
0
async def all_messages_catcher(event):
    if is_he_added(event.sender_id):
        return
    if event.sender_id == bot.uid:
        return
    if event.raw_text.startswith("/"):
        return
    if Config.SUB_TO_MSG_ASSISTANT:
        try:
            result = await tgbot(
                functions.channels.GetParticipantRequest(
                    channel=Config.JTM_CHANNEL_ID, user_id=event.sender_id))
        except telethon.errors.rpcerrorlist.UserNotParticipantError:
            await event.reply(
                f"**Opps, I Couldn't Forward That Message To Owner. Please Join My Channel First And Then Try Again!**",
                buttons=[
                    Button.url("Join Channel 🇮🇳", Config.JTM_CHANNEL_USERNAME)
                ])
            return
    await event.get_sender()
    sed = await event.forward_to(bot.uid)
    add_me_in_db(sed.id, event.sender_id, event.id)
Exemplo n.º 10
0
async def all_messages_catcher(event):
    if is_he_added(event.sender_id):