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 Telegram bots 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, the GPT-4 model cannot be used. In addition, you also need a server to run the program, which greatly limits the free usage. Therefore, today I will introduce a method that requires no cost, 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 mark, be careful not to find the wrong one). Or you can directly open https://t.me/BotFather
Click onStart
Type /newbot
and send
Send the name you want to give to the bot
Type 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
Log in
Register and log in 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 go to Telegram to chat with the bot.