Skip to content

yarkhinephyo/serverless-freshping-telegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

serverless-freshping-telegram

GitHub

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.

Alt desc

Telegram Bot Integration Guide

  1. Add @esm_wonderful_bot to the telegram group
  2. Add @getidsbot to the telegram group to get group chat ID
  3. Go to Freshping Dashboard > Setting > Integrations > Webhook > Create Integration
  4. Paste https://irrb74more.execute-api.ap-southeast-1.amazonaws.com/dev/{group_chat_id} into "Trigger the webhook" field
  5. 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


(Optional) Custom Webhook Deployment

  1. Ensure you have a Freshping account
  2. Create a Telegram Bot with @BotFather and save the bot token
  3. Ensure AWS credentials are set up on your computer for Serverless to work
  4. Clone this repo: git clone https://github.com/yarkhinephyo/serverless-freshping-telegram.git
  5. Install Dependencies: npm ci
  6. Deploy the webhook and receive a URL: sls deploy --botToken <Telegram bot token>
  7. Refer to the integration guide above

About

Serverless solution for Freshping & Telegram integration

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published