{"id":22550903,"url":"https://github.com/dmytro-varich/character-ai-telegram-bot","last_synced_at":"2026-02-27T02:02:26.195Z","repository":{"id":264944912,"uuid":"894732327","full_name":"dmytro-varich/Character-AI-Telegram-Bot","owner":"dmytro-varich","description":"This project demonstrates interaction with the API of the Character AI web application, as well as the structure and principles of Telegram bot development. It allows users to chat with a Character AI persona in Telegram by sending and receiving messages via the API.","archived":false,"fork":false,"pushed_at":"2025-04-30T08:42:11.000Z","size":32,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-30T09:25:47.664Z","etag":null,"topics":["aiogram3","character-ai-api","python","sqlite","telegram","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmytro-varich.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-11-26T22:15:05.000Z","updated_at":"2025-04-30T08:42:14.000Z","dependencies_parsed_at":"2025-04-14T22:08:45.560Z","dependency_job_id":"0b681c5c-a4e7-4eef-9541-f8b9dd90d511","html_url":"https://github.com/dmytro-varich/Character-AI-Telegram-Bot","commit_stats":null,"previous_names":["dmytro-varich/character-ai-telegram-bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dmytro-varich/Character-AI-Telegram-Bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmytro-varich%2FCharacter-AI-Telegram-Bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmytro-varich%2FCharacter-AI-Telegram-Bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmytro-varich%2FCharacter-AI-Telegram-Bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmytro-varich%2FCharacter-AI-Telegram-Bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmytro-varich","download_url":"https://codeload.github.com/dmytro-varich/Character-AI-Telegram-Bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmytro-varich%2FCharacter-AI-Telegram-Bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29882627,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T23:51:21.483Z","status":"online","status_checked_at":"2026-02-27T02:00:06.759Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aiogram3","character-ai-api","python","sqlite","telegram","telegram-bot"],"created_at":"2024-12-07T17:08:55.262Z","updated_at":"2026-02-27T02:02:21.189Z","avatar_url":"https://github.com/dmytro-varich.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 👾 Character AI Telegram Bot\nThis project demonstrates interaction with the API of the [Character AI](https://character.ai/) web application, as well as the structure and principles of Telegram bot development. It allows users to chat with a Character AI persona in [Telegram](https://web.telegram.org/) by sending and receiving messages via the API. The project is built using the [Unofficial Python API for Character.AI](https://github.com/kramcat/CharacterAI) and can serve as a foundation for developing custom bots that integrate AI characters into the messenger.\n\n![character-ai-telegram-bot-dv](https://github.com/user-attachments/assets/8dffd2a9-e919-4da6-abf6-645b86bc8535)\n\n\n# 🗂️ Project Structure \n```\ncharacter-ai-telegram-bot/\n│── config/ \n│   ├── config.py                # Environment variable storage\n│── databases/ \n│   ├── database.py              # Database module\n│── filters/ \n│   ├── chat_type.py             # Filter to determine the type of chat (group or private)\n│── handlers/   \n│   ├── conversation_filter.py   # Dialog filtering logic\n│   ├── help_handler.py          # Handler for the /help command\n│   ├── start_handler.py         # Handler for the /start command\n│── states/ \n│   ├── states.py                # State detection for dialog management with the user\n│── texts/ \n│   ├── texts.py                 # Stores text messages\n│── requirements.txt             # List of project dependencies      \n│── README.md                    # Project documentation\n```\n\n# 💻 Usage\n1. Clone this project to your computer using the following command:  \n   ```bash\n   git clone https://github.com/dmytro-varich/Character-AI-Telegram-Bot.git\n   ```  \n\n2. Create a `.env` file and update the configuration in the `config` folder by adding the necessary variables or replacing placeholder tokens with your own.  \n\n3. Navigate to the project’s root directory using the command:  \n   ```bash\n   cd Character-AI-Telegram-Bot\n   ```  \n\n4. Start the Telegram bot by running the following command in the terminal:  \n   ```bash\n   python main.py\n   ```  \n\n5. Open the Telegram messenger and find your bot. Click **Start** to begin.  \n\n6. To activate the bot, you will need to send it the email address associated with your **Character.AI** account. You will receive an email containing your API key. After that, send the link to the chat with the character in **Character.AI**, and you will be able to start chatting in Telegram.\n\n# 📌 More Info\nThe author of this project is Dmytro Varich. You can find more information about him and his projects on his Telegram channel [@varich_channel](https://t.me/varich_channel). For collaboration inquiries, feel free to contact him via LinkedIn ([dmytro-varich](https://www.linkedin.com/in/dmytro-varich/)) or email at varich.it@gmail.com.\nThis Telegram bot [@babyfooji_character_ai_bot](https://t.me/babyfooji_character_ai_bot) was created as a test bot and is accessible only to the project creator. This limitation exists because the current version allows the bot to interact with only one chat. However, the project can be adapted to enable a single bot to communicate with multiple users, where each user would have their own individual conversation with a specific character.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmytro-varich%2Fcharacter-ai-telegram-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmytro-varich%2Fcharacter-ai-telegram-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmytro-varich%2Fcharacter-ai-telegram-bot/lists"}