Skip to content

xjl0/golang-telegram-chat-gpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram bot ChatGPT on Golang

My pet project.

Telegram bot with chat gpt.

Environment Variables

TI_OPENAI_API_KEY=openai_token

TI_TELEGRAM_BOT_TOKEN=telegram_token

TI_CONVERSATION_IDLE_TIMEOUT=3600

TI_PROXY=http://127.0.0.1:8080 #if need proxy

TI_ALLOWED_TG_IDS=1234,5678,9012 #your telegram id's

TI_MODEL=gpt-4o