An environment variable required:
export T_TOKEN=<your_telegram_bot_token>
Set a webhook:
curl --request POST \
--url https://api.telegram.org/bot<your_telegram_bot_token>/setWebhook \
--header 'content-type: application/json' \
--data '{
"url": "<aws_api_gateway_invoke_url>"
}'