Telegram-bot (Python, aiogram, OpenAI API)
The simplest telegram bot for dialogue with ChatGPT.
Most capable GPT-3.5 model (gpt-3.5-turbo) and optimized for chat.
Requires OpenAI API token for authorization.
Prepared for deployment on Railway
BOT_TOKEN- Telegram Bot TokenCHAT_ID- ID of the telegram chat where the bot is allowed to work.AI_KEY- OpenAI API TokenDOMAIN- URL with the name of the application. After deployment, go to theSettingsof the project and copy the domain from theDomainssection. It should be likeworker-production-XXXX.up.railway.app. This will be a value for yourDOMAINvariable.