/Telegram-AI-Bot

This repo is for telegram bot which used ai to interact

Primary LanguageJavaScript

Telegram Ai Chat bot Step by Step Guide

TeleGeminiByAdityaBot

  1. install these packages :
npm init -y
npm i node-telegram-bot-api
npm i dotenv
  1. go to telegram and search 'botFather' and create new bot

    • /newbot
    • set name of bot 'TeleGeminiBot' this is my name
    • set username
    • get token
  2. Save token in env for file

  3. use polling method to get updates

  4. use bot.on and bot.onText to handle request

  5. add Ai api and make it more useful