╰⪼ 𝐒ʏɴᴛᴀx 𝐃ᴇᴠꜱ ⪻╯
Kanalga Telegram’da o‘tish
—͟͟͞͞ 𝐻𝑒𝑦 𝐷𝑒𝑎𝑟, 𝑊𝑒𝑙𝑐𝑜𝑚𝑒 𝑇𝑜 𝑀𝑦 𝐶ℎ𝑎𝑛𝑛𝑒𝑙 https://telegra.ph/Dont-support-any-illegal-activities-06-28
Ko'proq ko'rsatishMamlakat belgilanmaganToif belgilanmagan
763
Obunachilar
-824 soatlar
+137 kunlar
+63230 kunlar
Postlar arxiv
ꜰɪʟᴇ ꜱʜᴀʀᴇ ʙᴏᴛ ᴄᴏᴍᴍᴀɴᴅꜱ ᴛᴇʟᴇʙᴏᴛ ᴄʀᴇᴀᴛᴏʀ ᴩʏᴛʜᴏɴ. 🔥 ɢɪᴠᴇ ʀᴇᴀᴄᴛɪᴏɴ ꜰᴏʀ ᴍᴏʀᴇ ʙᴏᴛ ᴄᴏᴅɪɴɢ ꜰʀᴇᴇ. 👀
media_id = options.get("media_id")
files = options.get("files", [])
keyboard = ReplyKeyboardRemove()
if message.text == "✅":
# Confirmation Logic
if files:
shareable_link = f"https://t.me/{Bot.info().username}?start={media_id}"
bot.sendMessage(
chat_id=message.chat.id,
text=f"✅ Upload complete!\nShare this link:\n{shareable_link}",
reply_markup=keyboard
)
Bot.saveData(media_id, files) # Save to DB
else:
bot.sendMessage(chat_id=message.chat.id, text="❌ No media was uploaded.")
else:
media_entry = None
if message.photo:
media_entry = {"type": "photo", "file_id": message.photo[-1]["file_id"], "caption": message.caption or ""}
elif message.video:
media_entry = {"type": "video", "file_id": message.video["file_id"], "caption": message.caption or ""}
elif message.audio:
media_entry = {"type": "audio", "file_id": message.audio["file_id"]}
elif message.voice:
media_entry = {"type": "voice", "file_id": message.voice["file_id"]}
elif message.document:
media_entry = {"type": "document", "file_id": message.document["file_id"]}
elif message.animation:
media_entry = {"type": "animation", "file_id": message.animation["file_id"]}
elif message.sticker:
media_entry = {"type": "sticker", "file_id": message.sticker["file_id"]}
if media_entry:
files.append(media_entry)
bot.sendMessage(chat_id=message.chat.id, text="✅ Media saved. Send more or type ✅ to finish.")
else:
bot.sendMessage(chat_id=message.chat.id, text="❌ Unsupported input. Please send media files only.")
# Loop until user confirms
Bot.handleNextCommand("/handle_media", options={"media_id": media_id, "files": files})
❤️🔥 Command: /delete_messages
🔍 TPY:
user_id = options.get("user_id")
msg_ids = options.get("message_ids", [])
media_id = options.get("media_id")
# Delete all sent messages
for mid in msg_ids:
try:
bot.deleteMessage(chat_id=user_id, message_id=mid)
except Exception:
pass
# Notify user with restore option
Bot.sendMessage(
chat_id=user_id,
text="🗑️ Your files have been deleted from chat after 10 minutes.\nClick below to restore them.",
reply_markup={
"inline_keyboard": [[
{"text": "🔄 Restore Files", "url": f"https://t.me/{Bot.info().username}?start={media_id}"}
]]
}
)📁 Multiple File Sharing Telegram Bot [TELEBOT CODES]❤️🔥 Command:
/start
🔍 TPY:
if not params or params == "None":
bot.sendMessage(
text=(
"<b>📤 Welcome to Multi File Sharing Bot!</b>\n\n"
"With this bot, you can:\n"
"• Upload <b>multiple photos, videos, documents, stickers, audios, voices, animations</b>.\n"
"• Get a <b>unique shareable link</b> for your uploaded files.\n"
"• Share that link anywhere, and anyone can open it to view/download your files.\n\n"
"⚡ <b>How to use:</b>\n"
"1. Type <code>/upload</code> to start an upload session.\n"
"2. Send all your media files one by one.\n"
"3. When finished, type ✅ to confirm upload.\n"
"4. You will get a shareable link to your uploaded files.\n\n"
"⏳ Files shared in chat are <b>auto-deleted after 10 minutes</b> to prevent spam.\n"
"But don’t worry — you can always restore them using the shareable link.\n\n"
"🚀 Start sharing your files now!"
),
parse_mode="html",
reply_markup={
"inline_keyboard": [[
{"text": "📤 Start Uploading", "callback_data": "/upload"}
]]
}
)
else:
media_id = params
files = Bot.getData(media_id)
if not files:
bot.sendMessage("❌ No media found for this link.")
else:
sent_msgs = [] # store message IDs for later deletion
# Send all media
for f in files:
m = None
if f["type"] == "photo":
m = bot.sendPhoto(f["file_id"], caption=f.get("caption", ""))
elif f["type"] == "video":
m = bot.sendVideo(f["file_id"], caption=f.get("caption", ""))
elif f["type"] == "audio":
m = bot.sendAudio(f["file_id"])
elif f["type"] == "voice":
m = bot.sendVoice(f["file_id"])
elif f["type"] == "document":
m = bot.sendDocument(f["file_id"])
elif f["type"] == "animation":
m = bot.sendAnimation(f["file_id"])
elif f["type"] == "sticker":
m = bot.sendSticker(f["file_id"])
if m and "message_id" in m:
sent_msgs.append(m["message_id"])
# Final note
note = bot.sendMessage(
"⚠️ <b>Note:</b> Files will be automatically deleted from chat after <b>10 minutes</b> to prevent spam.",
parse_mode="html",
reply_markup={
"inline_keyboard": [[
{"text": "🔗 Join Channel", "url": "t.me/botnations"}
]]
}
)
if "message_id" in note:
sent_msgs.append(note["message_id"])
# Schedule deletion of messages only
Bot.runCommandAfter(
600,
"/delete_messages",
options={"user_id": message.chat.id, "message_ids": sent_msgs, "media_id": media_id}
)
❤️🔥 Command: /upload
🔍 TPY:
# /upload command
keyboard = ReplyKeyboardMarkup(True)
keyboard.row("✅")
media_id = Bot.genId() # generate a unique ID
bot.sendMessage(chat_id=message.chat.id, text="👉 Send me the text you want to upload. When you are done.",reply_markup = keyboard)
Bot.handleNextCommand("/handle_media", options={"media_id": media_id, "files": []}) # initialize files as an empty list
❤️🔥 Command: /handle_media
🔍 TPY:বিকাশ পে বটের কোডিং সেল হবে কেও নিলে ইনবক্স করুন। 👀 ফুল মেকিং কোডিং জাস্ট কিনবেন বট বানিয়ে টোকেন আপডেট করলে বট রেডি 🔥
নিতে চাইলে ইনবক্স 📎
@Cwi_Owner
𝐀ꜱꜱᴀʟᴀᴍᴜᴀʟɪᴋᴜᴍ💝
আমাদের ইন্ডিয়ান টেলিগ্রাম একাউন্ট গিভয়ে ভোটিং শুরু হয়েছে। 🔥
সবাই ভোট বাড়ান 🚀
ফেক ভোট নিলে নাম বাতিল।
`ভোট শেষ হবে কালকে বিকাল ২:৫০ টায় 🔥```
ᴏꜰꜰɪᴄɪᴀʟ ᴄʜᴀɴɴᴇʟ/📎
https://t.me/CODING_WITH_IMRAN
https://t.me/CODING_WITH_IMRAN
https://t.me/CODING_WITH_IMRAN