As we all know, the Bot API of Telegram provides many functions, such as receiving and sending messages, handling keyboard input, and many other functions. Therefore, we can easily chat with a Telegram bot by integrating ChatGPT. However, the traditional integration method requires an OpenAI API key, and OpenAI only provides a free quota of $5, and without payment, you cannot use the GPT-4 model. In addition, you also need a server to run the program, which greatly limits the ability to use it for free. Therefore, today I will introduce a method that does not require any fees, and currently, apart from slow response, no other limitations have been found.
Steps#
- Create a bot on Telegram
Open Telegram and search for BotFather, find and open it (it has a blue checkmark, be careful not to choose the wrong one). Alternatively, you can directly open https://t.me/BotFather
Click onStart
Type /newbot
and send it
Send the name you want to give to the bot
Enter the username you want to give to the bot (it must end with "bot")
Copy the API
Add the bot
Search for the username of the bot and click on Start
- Integrate with GPT
Go to Steamship
Login
Register and login according to the instructions
Click
Click on Optional Configuration
and fill in the requirements
When this interface appears, it means success. You can have a conversation with GPT here or talk to the bot on Telegram.