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
ProfileTelegram
7 commands0 envUpdated 23d agoCreated Aug 14, 2026
Back to folder

commands/_cancel.js

javascript · 23 lines

Raw
1/**#command2name: /cancel3answer: 4keyboard: 5parse_mode: 6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12/*command: /cancel*/13User.del("waiting_for_files")14User.del("uploaded_files")15Bot.sendMessage(16    "❌ <b>Upload Cancelled</b>\n\n" +17    "Your upload session has been cancelled.\n\n" +18    "💡 <i>Use /upload to start a new session</i>",19    {20        parse_mode: "HTML",21        reply_markup: { remove_keyboard: true }22    }23)