adityajat/SaarvamAI_botPublic · Bot Template
AISarvam AI is a multi‑purpose Telegram bot that lets users ask questions, get explanations, convert text to speech, and translate messages using the Sarvam AI API. It also offers group administration commands such as warn, mute, ban, pin, delete, and announcements, and can clear personal or group AI memory. The bot uses the TeleBotHost TBL framework with Bot, Api, db, and HTTP calls, and provides inline keyboards for language and voice selection.
Ai Assistantaivoicetranslatemoderationadminsarvam
34 commands4 envUpdated 15d agoCreated Sep 14, 2026
commands/_start.js
javascript · 67 lines
1/**#command2name: /start3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12 13const welcomeText = `👋 Welcome to Sarvam AI!14 15🧠 AI & CONVERSATION16• /ask — Ask anything17• /explain — Get an explanation18• /forget — Clear personal AI memory19 20🔊 VOICE21• /voice — Convert text to speech22 23🌐 LANGUAGE24• /translate — Translate text25 26🛡️ GROUP ADMIN TOOLS27• /warn — Warn a member28• /warnings — View warnings29• /resetwarn — Reset warnings30• /mute — Mute a member31• /unmute — Unmute a member32• /ban — Ban a member33• /unban — Unban a member34• /pin — Pin a message35• /unpin — Unpin a message36• /delete — Delete a message37• /announce — Make an announcement38• /tag — Tag one member39• /tagall — Tag members40• /automod — Manage automatic moderation41• /clearmemory — Clear group AI memory42 43👥 GROUP MEMBERS + ADMINS44• /help45• /owner46• /forget47 48Use the buttons below or type /help anytime.`;49 50await Api.sendMessage({51 chat_id: chat.id,52 text: welcomeText,53 reply_markup: {54 inline_keyboard: [55 [56 {57 text: "➕ Add Me to Group",58 url: "https://t.me/saarvamai_bot?startgroup=true"59 }60 ],61 [62 { text: "❓ Help", callback_data: "show_help" },63 { text: "👑 Owner", callback_data: "owner" }64 ]65 ]66 }67});