Telegram-bot (Python, aiogram, OpenAI API)
The simplest telegram bot for dialogue with ChatGPT.
Requires OpenAI API token for authorization.
Prepared for deployment on Railway
BOT_TOKEN
- Telegram Bot TokenRAILWAY_APP_NAME
- Part of the URL with the name of the application (you can get it when you deploy)CHAT_ID
- ID of the telegram chat where the bot is allowed to work. Must be added to the listWORKS_CHATS
in the fileconfig.py
. You can add several.AI_KEY
- OpenAI API Token