Download the PHP package giaphiep/chatgpt-telegram without Composer
On this page you can find all versions of the php package giaphiep/chatgpt-telegram. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download giaphiep/chatgpt-telegram
More information about giaphiep/chatgpt-telegram
Files in giaphiep/chatgpt-telegram
Package chatgpt-telegram
Short Description Upgrade Laravel Telegram bots with AI-powered ChatGPT. Create engaging, lifelike conversations effortlessly
License MIT
Homepage https://github.com/giaphiep/chatgpt-telegram
Informations about the package chatgpt-telegram
ChatGPT TelegramBot
Implement Telegram bot that integrates with ChatGPT using Laravel
Table of Contents
- Installation
- Configuration
- Usage
- Contact
Installation
Install this package via Composer
Execute the following command to publish the migrations file to your Laravel application:
then run
Configuration
Step1: Create a Telegram Bot
-
Message
@BotFather
with the following text:/newbot
If you don't know how to message by username, click the search field on your Telegram app and type
@BotFather
, where you should be able to initiate a conversation. Be careful not to send it to the wrong contact, because some users have similar usernames toBotFather
. -
@BotFather
replies with: -
Type whatever name you want for your bot.
-
@BotFather
replies with: -
Type whatever username you want for your bot, minimum 5 characters, and must end with
bot
. For example:telesample_bot
-
@BotFather
replies with: - Note down the 'token' mentioned above.
Optionally set the bot privacy:
-
Send
/setprivacy
to@BotFather
. -
@BotFather
replies with: -
Type (or select)
@telesample_bot
(change to the username you set at step 5 above, but start it with@
) -
@BotFather
replies with: -
Type (or select)
Disable
to let your bot receive all messages sent to a group. @BotFather
replies with:
Step 2: Get ChatGPT key from OpenAI
Then add the following lines to your .env file:
Step 3: Set webhook receive incoming updates. (note: remember, that you need use HTTPS)
Usage
Contact
For questions and inquiries, you can reach me at [email protected].