Skip to content

A multi modal Telegram AI Friend sample chatbot built using the MessengerX.io API (NSFW)

Notifications You must be signed in to change notification settings

machaao/telegram-ai-chatbot-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Live Demo

https://t.me/JeanieAIGFBot

figure

Pre Requisites

  1. Sign up for a Free MessengerX.io Rapid API key
  2. Create a Free AI Character via https://portal.messengerx.io
  3. Follow the steps below to chat with your character via Telegram

Create a Telegram Bot

  1. Go to Telegram apps and create an app
  2. You'll get an App api_id and App api_hash
  3. Open the Telegram app and search for the BotFather bot
  4. Start a chat with the BotFather and use the “/newbot” command to create a new bot
  5. Follow the instructions from the BotFather to choose a name and username for your bot
  6. Once the bot is created, BotFather will provide you with a unique Bot token for your bot. Make sure to keep this token safe, as it will be used to authenticate your bot when making API calls.

Download or clone this repository

git clone https://github.com/machaao/telegram-ai-chatbot-sample
cd telegram-ai-chatbot-sample

Install requirements

pip install -r requirements.txt

Create a new .env file in the bot directory

nano -w .env

Put these key-value pairs in your .env file

RAPIDAPI_KEY=<RapidAPI Token>
BOT_TOKEN=<From Botfather>
API_ID=<App api_id>
API_HASH=<App api_hash>
BOT_NAME=jeanie
# Refer to the screenshot below to get your unique bot name / id via https://portal.messengerx.io

figure

Run the chatbot server from the root directory of the repo

python main.py

About

A multi modal Telegram AI Friend sample chatbot built using the MessengerX.io API (NSFW)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published