← ProjectsAI · Telegram Bot · 2023–2024
GPT Assistant Bot
Telegram assistant bot on C# / .NET with OpenAI GPT integration. Custom personas, context management, deployed via docker-compose on the client's server.
- Response streaming + context management
- Configurable personas / role-based prompts
- Rate limiting and OpenAI API error handling
- Deploy under any client in one day
C# / .NETTelegram.Bot.ApiOpenAI APIDocker Compose
Challenge
Handle the typical request "we need an AI assistant in Telegram" — without vendor lock-in to third-party SaaS, running on the client's own server, with custom prompts and private chat data.
What We Did
- Backend on C# / .NET (GptBot) with Telegram.Bot.Api for managing incoming and outgoing messages.
- OpenAI API integration: response streaming, conversation context management, token and rate limiting.
- Configurable "personas" / role-based prompts via deployment settings.
- Full docker-compose packaging — starts on the client's server with a single command.
- Logging and API error handling (rate limits, network).
Result
- Ready-to-use AI bot template deployable for any client in a day with their own OpenAI key.
- Used both as internal studio tool and as white-label solution for clients.