Serverless solution for freshping-telegram integration. Creates a telegram bot that notifies a group when the server status changes (Available/ Not Responding) that is hosted with AWS Lambda.
- Add
@esm_wonderful_bot
to the telegram group - Add
@getidsbot
to the telegram group to get group chat ID - Go to Freshping Dashboard > Setting > Integrations > Webhook > Create Integration
- Paste
https://irrb74more.execute-api.ap-southeast-1.amazonaws.com/dev/{group_chat_id}
into "Trigger the webhook" field - Save and click on "Test" to see if the integration works
Example: If group chat ID is -100123456, paste
https://irrb74more.execute-api.ap-southeast-1.amazonaws.com/dev/-100123456
- Ensure you have a Freshping account
- Create a Telegram Bot with @BotFather and save the bot token
- Ensure AWS credentials are set up on your computer for Serverless to work
- Clone this repo:
git clone https://github.com/yarkhinephyo/serverless-freshping-telegram.git
- Install Dependencies:
npm ci
- Deploy the webhook and receive a URL:
sls deploy --botToken <Telegram bot token>
- Refer to the integration guide above