This is a serverless application that implements a Telegram bot connector for Amazon Bedrock.
This application create an API Gateway endpoint to listen for webhook request, an Event Bridge bus to send received messages.
Using the SAM CLI:
sam build
sam deploy --guided
-
TelegramBotToken: Telegram bot token.
-
TelegramIPsWhitelist: Comma separate list of IPs of permitted senders IP, leave empty to disable whitelist.
-
UsernameWhitelist: Telegram allowed usernames, separated by comma.
-
ModelId: Model identifier (default: ai21.j2-mid-v1).
-
SystemPrompt: Model instruction about how to respond to incoming messages.
-
WebhookEndpoint: The Telegram bot Webhook URL
-
EventBusName: Name of EventBridge bus where message event are sent
- Repository badges by Shields.io
- Infrastructure schema by Cloudcraft