adityajat/SaarvamAI_botPublic · Bot Template

ProfileTelegram

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
Back to folder

commands/_credits.js

javascript · 20 lines

Raw
1/**#command2name: /credits3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12 13const credits = await db.user.get("voice_credits", 0);14 15Bot.sendMessage(16  "🎙️ Voice Credits\n\n" +17  "Available credits: " + credits + "\n\n" +18  "Each successful voice generation costs 1 credit.\n" +19  "Use /buyvoice to purchase more credits."20);