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("/"): return elif event.text is not None and event.media: bot_api_file_id = pack_bot_file_id(event.media) await tgbot.send_file( user_id, file=bot_api_file_id, caption=event.text, reply_to=reply_message_id, ) else: msg_s = event.raw_text await tgbot.send_message( user_id, msg_s, reply_to=reply_message_id, )
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.")
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: if event.raw_text.startswith("/"): pass else: await tgbot.send_message(user_id, msg_s)
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.")