screencas.blogg.se

My telegramorg
My telegramorg




my telegramorg

When a script/job finished, it can make a request to your Flask app endpoint and it can send you notification to notify you it’s completed.Create a route in Flask app to receive website visit GET request, and then send a message with visitor information (e.g.Install IFTTT app on your phone and allow it to monitor your location, create an action to make webhook request to your Flask endpoint whenever you leave a place or arrive a place.The message can be pre-defined or passed to it on the flight.īack to the situations I talked about at the beginning, how this Flask app can solve the problems? Now you have a Flask app to send you message whenever it gets a HTTP request. Upload the Flask app to Google App Engine: gcloud app deploy.Create a route handler in Flask app and make it be able to make GET request to send message like below: $TOKEN/sendMessage?chat_id=12345&text=Hello+World.Talk with your bot and get the chat id: $TOKEN/getUpdates.Follow Google App Engine tutorial to build a basic Flask app.

my telegramorg

The steps to build this Flask app can be found below: This Flask app can be running in Google App Engine for free, and use your custom domain. The solution to above situations is a mechanism to send message to your phone programmatically and here is my solution:īuild a Flask app to receive GET or POST request, and then compose different messages according to event type and send to some chat channel such as Telegram or Slack.

  • I want get notified when a scraper or job finished.
  • I want to get notified when there is new visit to my website.
  • I want to notify my girl friend whenver I leave company or arrive home.





  • My telegramorg