Skip to content

nahom-d54/ChatMeTg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatMeTg

A chatbot kind that works in real telegram user chats

How To Install

git clone https://github.com/nahom-d54/ChatMeTg.git 

cd ./ChatMeTg

pip install -r requirements.txt

Usage

The usage is stright forward

First Set the appropriate environment variables

set API_ID=TELEGRAM_API_ID
set API_HASH=TELEGRAM_API_HASH
set SESSION_STRING=TELEGRAM_SESSION_SRTING
set GPT_URL=https://api.openai.com/v1/chat/completions
set GPT_AUTH=ss-OPENAI_API_KEY
set HOST_USER_ID=THE_USER_ID_OF_THE_HOST_ACCOUUNT
set ALLOWED_USER_ID=COMMA SEPARETED USER_ID OR USERNAME

Then run the app

python3 app.py

FAQ

Where can I get the session string

You can get the session string from here

Where can I get the api_id and api_hash

You can get the api id and hash from Telegram

About

A chatbot kind that works in real telegram user chats

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages