This Telegram bot is designed to utilize GPT models for text generation. It is built using the aiogram library and aiohttp for handling asynchronous operations.
- aiogram for building Telegram bot functionality
- aiohttp for handling asynchronous operations
- Encoding from tiktoken for GPT model tokenization
- Constants for managing allowed phones and other constants
- Core functionality for user repository and dispatcher
- User model for managing user data
- GPT API for handling GPT model exceptions and interactions
- Utilizes GPT models for text generation
- Manages user history and messages
- Limits the length of user messages to prevent exceeding GPT model token limits