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/_testweb.js
javascript · 44 lines
1/**#command2name: /testweb3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12let result =13 await tinyFishWebResearch(14 "Free ChatGPT APIs"15 16 );17 18if (!result) {19 20 await Api.sendMessage({21 text:22 "❌ TinyFish returned no results."23 });24 25 return;26}27 28let sources =29 formatTinyFishSources(30 result.search31 );32 33let pages =34 formatTinyFishFetched(35 result.fetched36 );37 38await sendLongText(39 "✅ TinyFish Search worked.\n\n" +40 sources +41 "\n\n" +42 "===== FETCHED PAGE =====\n\n" +43 pages.slice(0, 10000)44);