A simple example of REST API Endpoint that convert OpenSearch Dashboard HTTP Request into Telegram API request.
- Convert OpenSearch Dashboard's Alert HTTP Request into Telegram API
-
Install maven
-
Setup the application.properties with your telegram credential. telegram.id is the chat-id that you want to send the message, whereas telegram.bot is the telegram bot Id
-
Use mvn package to build the module into jar file
mvn clean package
- Run the resulting jar
java -jar SendToTelegram-1.0.0.jar
- The application will listening port 10080
You can find the detail explanation of in this medium blog.
For feedback, please raise issues in the issue section of the repository. Enjoy!!.