themasterofficial3/sahistavaloraXbotPublic · Bot Template
AIMulti-file sharing bot that lets users start an upload session with /upload, collect photos, videos, documents, audio, stickers and animations, then package them into a shareable start-link using Bot storage. The wildcard command watches for upload-mode messages and the finish action, /start with a hash param retrieves and sends stored files, /cancel aborts sessions, and /stats tracks user and command counters. Callback handling supports help/upload buttons, and the error command logs exceptions.
Utilityfile-sharinguploaddownloadshare-linkmediainline-keyboard
7 commands0 envUpdated 23d agoCreated Aug 14, 2026
commands/_upload.js
javascript · 33 lines
1/**#command2name: /upload3answer: 4keyboard: 5parse_mode: 6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12/*command: /upload*/13// Start upload session using our previous method14 User.set("waiting_for_files", true)15 16let keyboard = {17 keyboard: [[{ text: "✅ Finish Upload" }]],18 resize_keyboard: true,19 one_time_keyboard: true20}21 22Api.sendMessage({23 text: "📤 <b>Upload Session Started!</b>\n\n" +24 "👉 Send me the files you want to upload (one by one).\n\n" +25 "📁 <b>Supported files:</b>\n" +26 "• Photos, Videos, Documents\n" +27 "• Audio, Voice messages\n" +28 "• Stickers, Animations\n\n" +29 "💡 <i>When finished, press the '✅ Finish Upload' button below</i>",30 parse_mode: "HTML",31 reply_markup: keyboard32 }33)