banner
endercat

endercat

某个白嫖怪的分享博客 现已迁移到 https://endercat.eu.org 请前往该URL查看最新文章
bilibili
github
telegram

Free access to GPT-4 for Telegram bots

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.
image


Steps#

  1. 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 on Start

Image
Type /newbot and send

Image
Send the name you want to give to the bot

Image
Type the username you want to give to the bot (it must end with "bot")

Image
Copy the API

Image

Add the bot
Search for the username of the bot and click on Start

Image

  1. Integrate with GPT
    Go to Steamship

Image
Log in

Image
Register and log in according to the instructions

Click

Image
Click on Optional Configuration and fill in the requirements

Image

When this interface appears, it means success. You can have a conversation with GPT here or go to Telegram to chat with the bot.

Image

Image

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.