Skip to content

Michaelredaa/AIChatBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

OpenAIBot For Telegram

  • This is a simple telegram chatbot that uses OpenAI API to generate a responses to messages. By sending the message the bot send a request to chatGPT API and wait for a response, once get the response sending it back to the chat.
  • You can test my bot from Bot

Requirements

  • pip install aiogram
  • pip install requests

How it works

  • python chatBot.py

To get Telegram API Token

1- Open Telegram and search for the BotFather account.

2- Send a message to the BotFather with the command /newbot.

3- Follow the instructions to choose a name and username for your bot.

4- Once you have created the bot, the BotFather will give you a token for your bot. This token should be kept secret and not shared with anyone.

To get Rapid API Token

1- Go to Rapid API

2- Sign up and Follow the instructions to get the token

Deployment

-Deployment of chatbot can be deployed on a cloud service provider I use Replit

Credits

  • This code created by @Michael. All information I get through chat GPT, so it is available to everyone to change/edit/create without return to me.

About

AI Telegram Chat Bot base on Chat GPT

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages