CharacterAI telegram chatbot. Made using Aiogram 3.
- Python 3.11 or higher
- Systemd (if you want to run bot as service)
- character.ai token
Clone the repository and install all dependencies by:
pip install -r requirements.txt
Acessing API:
- Login into character.ai and open DevTools in your browser (F12).
- Go to Storage -> Local Storage -> char_token, copy value and paste it into .env CHARACTERAI_TOKEN.
Also paste your telegram bot token form @BotFather into .env and start bot:
python main.py
If you want to add some characters to the /characters menu, you need to get name and id and paste into keyboards.choose_character.characters. To get id simply copy it form link:
Replace '.example' from characterai-bot.service.example so it's just characterai-bot.service. Then just copy service file to /etc/systemd/system/
sudo systemctl start characterai-bot.service