GPT and AI Telegram bot
- Chat bot OpenAI API
- Transcript music and voices {mp3, mp4, mpeg, mpga, m4a, wav, or webm, ogg}
- Translation to English music and voices {mp3, mp4, mpeg, mpga, m4a, wav, or webm, ogg}
- PDF to Word (.docx) with OCR
- Prompt to Image with OpenAI
- Buy token(In-App purchases unit coin)
- User account provide with panel
- Invite link with bonus
- Score System for buying tokens
On your server run
bash pre-installation.sh
Wait until the update and postgress installation.
If you do not have any backup of your database start migrations and create tables with this comands
Fill all requirement variables in .env
change sqlalchemy link in alelbic.ini
sqlalchemy.url = postgresql://USER:PASSWORD@HOST/DATABASE
(create migration folder and initial it if you not found any folder like this in your Rep)
alembic init migrations
alembic revision --autogenerate -m "create usermodel"
alembic upgrade heads
sign in your postgres user and create daatabase
sudo su postgres
psql
createdb chatgpt
\q
psql -U postgres chatgpt < backup_file.sql
This will backup database and store it in /backup/ and push it to the git
sudo ./scripts/backup.sh
sudo su postgres
psql
\password postgres
Remember you need change global variables in .env(like: Telegram Token, OpenAI token)
bash sudo run.sh
Just add this line in your crontab file
Open your schedule file with
crontab -e
Add this line with you desire time to automate your backup script
15 3 * * * /bin/bash /root/ChatGPT/script/backup.sh
we have big dicotionary for able to multilanguage bot
we have some command for administrator
-
/addapi "for add openai api"(you can provide many APIs thats usefull when some api break down another one working)
-
/getapi "show all api with status" green(active) - red(deactivate) - yellow(pending)
-
/addoffer "add offer code for discount system" need duration days and discount persent
-
/charge "charge user token manually" needs user id(chat_id) and tokens needs
-
/message "send global message to all users" needs your message and you sign to send