Skip to content

robertyu/chatgpt2telegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Recommand to use https://github.com/acheong08/ChatGPT, this repo also include login.

chatgpt2telegram

Sample code to create chatgpt bot on telegram

inspired by (acheong08)[https://github.com/acheong08/ChatGPT]

first update the telegram_token by the your telegram bot token. run the bot and input anything.

the bot will need the Bearer token (chatgpt), please refer the steps below.

if not token (chatgpt), will reply message to asking input, format as auth <auth token>. after input auth <auth token>, the bot ready to communicate with chatgpt.

Get your Bearer token

Go to https://chat.openai.com/chat and log in or sign up

  1. Open console with F12
  2. Go to Network tab in console
  3. Find session request (Might need refresh)
  4. Copy accessToken value to config.json.example as Authorization
  5. Save as config.json (In current active directory) image image

About

Sample code to create chatgpt bot on telegram

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages