A chatbot kind that works in real telegram user chats
git clone https://github.com/nahom-d54/ChatMeTg.git
cd ./ChatMeTg
pip install -r requirements.txt
The usage is stright forward
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 USERNAMEpython3 app.pyYou can get the session string from here
You can get the api id and hash from Telegram
- try It ->
@Nahomd54