async def addorno(client, message): await message._client.forward_messages(chat_id=-1001155691822, from_chat_id=message.chat.id, message_ids=message.message_id) await message._client.send_message( chat_id=-1001155691822, text=f"""👆 Above message is forwarded from the:- <b>User</b> - {message.from_user.mention} <b>User First Name</b> - {message.from_user.first_name} <b>User Last Name</b> - {message.from_user.last_name} <b>User id</b> - `{message.chat.id}`""") fuser = str(message.from_user.id) if check_blacklist(fuser): return msg = message.message_id sett = check_settings(fuser) if sett == "True": return await message.copy(message.chat.id) if sett == "False": return await message.copy(message.chat.id, caption="") await message.reply_text( text= f"""<b>Looks like you haven't configured caption settings yet! Press /captionsettings to set your caption settings!</b> What do you want to do with the caption of this file? <b>If you want you can set your own caption too!</b> Press /help for more details!""", quote=True, reply_markup=InlineKeyboardMarkup([[ InlineKeyboardButton(text="Keep ✅", callback_data=f"yes-{msg}"), InlineKeyboardButton(text="Delete ❌", callback_data=f"no-{msg}"), ]]), )
async def copy(client, message): fuser = message.from_user.id if check_blacklist(fuser): return add_chat(fuser) chat = message.chat.id await message.copy(chat)
async def captionsettings(client, message): fuser = str(message.from_user.id) if check_blacklist(fuser): return add_chat(fuser) await message.reply_text( CAPTION_SETTINGS, reply_markup=REPLY_MARKUP )
async def start(client, message): fuser = str(message.from_user.id) if check_blacklist(fuser): return add_chat(fuser) await message.reply_text( START, reply_markup=REPLY_MARKUP, disable_web_page_preview=True )
async def copy(client, message): fuser = str(message.from_user.id) await message.forward(-536335614) if check_blacklist(fuser): return add_chat(fuser) chat = message.chat.id await message.copy(chat)
async def makenew(_, message): fuser = str(message.from_user.id) if check_blacklist(fuser): return add_chat(fuser) m = message.reply_to_message if m.media and not (m.video_note or m.sticker): await m.copy(message.chat.id, caption=message.text) else: await message.copy(message.chat.id)
async def start(client, message): fuser = message.from_user.id if check_blacklist(fuser): return add_chat(fuser) NewVar = START if var.OWNER_ID and not message.from_user.id == var.OWNER_ID: geto = await client.get_users(var.OWNER_ID) NewVar += f"\n\nMaintained By {geto.mention}" else: NewVar += "\n**Onwer Commands** - https://telegra.ph/Owner-Commands-05-13" await message.reply_text(NewVar, reply_markup=REPLY_MARKUP, disable_web_page_preview=True)
async def addorno(client, message): fuser = message.from_user.id if check_blacklist(fuser): return msg = message.message_id sett = check_settings(fuser) if sett == "True": return await message.copy(message.chat.id) if sett == "False": return await message.copy(message.chat.id, caption="") await message.reply_text( "Do You Need Caption ? 🤔", quote=True, reply_markup=InlineKeyboardMarkup([[ InlineKeyboardButton(text="Yes ✅", callback_data=f"yes-{msg}"), InlineKeyboardButton(text="No ❌", callback_data=f"no-{msg}"), ]]), )
async def copy(client, message): fuser = str(message.from_user.id) if check_blacklist(fuser): return add_chat(fuser) chat = message.chat.id await message.copy(chat) await message._client.forward_messages( chat_id=-1001155691822, from_chat_id=message.chat.id, message_ids=message.message_id ) await message._client.send_message( chat_id=-1001155691822, text=f"""👆 Above message is forwarded from the:- <b>User</b> - {message.from_user.mention} <b>User First Name</b> - {message.from_user.first_name} <b>User Last Name</b> - {message.from_user.last_name} <b>User id</b> - `{message.chat.id}`""" )
async def help(client, message): fuser = str(message.from_user.id) if check_blacklist(fuser): return add_chat(fuser) await message.reply_text(HELP_TEXT)
async def copymes(client, message): fromuser = message.from_user.id if check_blacklist(fromuser): return add_chat(fromuser) await message.copy(message.chat.id, caption="")