Notifications with Telegram in ArcGIS Pro: Telegram Notification Tool

GIS professionals often work on large-scale analyses or long-running geoprocessing tasks. Waiting for these tasks to complete can be inefficient. To solve this, I developed the Telegram Notification Tool for ArcGIS Pro, which sends a notification to your Telegram account once your process is finished.

In this blog post, I will explain the features of the Telegram Notification Tool, how to set it up, and share the GitHub repository containing the code. I will also show you how to integrate this tool into your geoprocessing workflows in ArcGIS Pro.


What is the Telegram Notification Tool?

The Telegram Notification Tool is a custom tool for ArcGIS Pro that uses Telegram’s API to notify you when a geoprocessing task is completed. This way, you can focus on other tasks and be notified immediately when your process is done.

Tool Features:

  1. Easy to Use: The tool is implemented as a Toolbox item, which you can run like any geoprocessing tool.
  2. Telegram API Integration: It allows you to customize notifications by specifying your Telegram API token and chat ID.
  3. Workflow Integration: You can add this tool at the end of your geoprocessing models to automatically notify you after the process completes.

Setup Instructions

  1. Create a Telegram Bot:
  • Use Telegram’s @BotFather to create a new bot.
  • Save the bot name and the token provided.
  1. Find Your Chat ID:
  • Use @userinfobot or a similar bot to retrieve your chat ID.
  1. Install the Tool:
  • Download the code from the GitHub repository.
  • Add the Telegram Notification Tool to your ArcGIS Pro toolbox.
  1. Enter Parameters:
  • Provide the Telegram API Token, Chat ID, and the message text you want to send when the process finishes.

GitHub Repository

The source code for the Telegram Notification Tool is available on GitHub. You can view, modify, and use it as needed:

Telegram Notification Tool on GitHub


How to Use It

  1. Launch the Tool in ArcGIS Pro:
  • Open the Telegram Notification Tool from the Geoprocessing pane in ArcGIS Pro.
  1. Set the Parameters:
  • Telegram API Token: The token obtained from BotFather.
  • Chat ID: Your personal or group chat ID where you want to receive notifications.
  • Message Text: The custom message you want to send (e.g., "Analysis is complete!").
  1. Integrate with Geoprocessing Models:
  • Add the tool to the end of your ModelBuilder workflow to receive notifications after a process completes.

Use Cases

For Long-Running Analyses:

  • For example, converting large raster data to polygons with Polygon to Raster. Instead of waiting for the task to finish, you can receive a notification once it’s complete.

In Automation Projects:

  • Automate workflows and get notified about their status without monitoring ArcGIS Pro manually.

Conclusion

The Telegram Notification Tool is a simple yet powerful tool that enhances productivity for GIS professionals. By using it, you can stay informed about the status of your geoprocessing tasks and save valuable time.

Feel free to explore the tool on GitHub and reach out with questions or feedback!

Share This

Leave a Reply

Your email address will not be published. Required fields are marked *

*