-
Notifications
You must be signed in to change notification settings - Fork 8
Feature/add telegram integration #157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds Telegram Bot integration to Agent Kernel, enabling deployment of AI agents as Telegram bots. The integration uses webhooks to receive messages from Telegram and responds with AI-generated content from configured agents. This brings Agent Kernel's messaging platform support in line with existing integrations like WhatsApp, Messenger, and Slack.
Key changes:
- New
AgentTelegramRequestHandlerclass for handling Telegram Bot API webhooks - Configuration support for Telegram bot token and webhook secrets
- Complete example implementation with tests and comprehensive documentation
- Version bump to 0.2.7 across all dependency lock files
Reviewed changes
Copilot reviewed 13 out of 36 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
| ak-py/pyproject.toml | Adds telegram optional dependency group with httpx requirement |
| ak-py/uv.lock | Updates to include telegram extras and httpx dependency |
| ak-py/src/agentkernel/telegram.py | Entry point module for Telegram integration |
| ak-py/src/agentkernel/integration/telegram/init.py | Package initialization and exports |
| ak-py/src/agentkernel/integration/telegram/telegram_chat.py | Core implementation of webhook handler and message processing |
| ak-py/src/agentkernel/integration/telegram/README.md | Integration-level documentation for Telegram |
| ak-py/src/agentkernel/core/config.py | Adds _TelegramConfig class for bot configuration |
| examples/api/telegram/* | Complete working example with server, tests, config, and build script |
| docs/docs/integrations/telegram.md | User-facing documentation for Telegram integration |
| examples/*/uv.lock | Version updates from agentkernel 0.2.6 to 0.2.7 across all examples |
Comments suppressed due to low confidence (2)
ak-py/src/agentkernel/integration/telegram/telegram_chat.py:1
- Import of 'hashlib' is not used.
import hashlib
ak-py/src/agentkernel/integration/telegram/telegram_chat.py:2
- Import of 'hmac' is not used.
import hmac
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Description
Type of Change
Related Issues
Changes Made
Testing
Checklist
Screenshots (if applicable)
Additional Notes