| Name | Telegram |
| Version | v1.0.0 |
| DockerHub | beetaone/telegram |
| authors | Jakub Grzelak |
This modules sends messages and notifications to a selected Telegram chat. It requires setting up Telegram Bot. Additionally, we recommend running this module together with our Message Composer module that helps in writing alerts within beetaone Edge Application.
Getting your Telegram Bot TOKEN:
/newbot to create a new botGetting your Telegram Bot CHAT ID:
Alternative Method with Python script
import requests
TOKEN = "YOUR TELEGRAM BOT TOKEN"
url = f"https://api.telegram.org/bot{TOKEN}/getUpdates"
print(requests.get(url).json())
The following module configurations can be provided in a data service designer section on beetaone platform:
| Name | Environment Variables | type | Description |
|---|---|---|---|
| Token | TOKEN | string | Your Telegram bot token. |
| Chat ID | CHAT_ID | string | Your chat with bot ID. |
| Message Label | MESSAGE_LABEL | string | Label in incoming data that holds the message to be sent. |
Other features required for establishing the inter-container communication between modules in a data service are set by beetaone agent.
| Environment Variables | type | Description |
|---|---|---|
| MODULE_NAME | string | Name of the module |
| MODULE_TYPE | string | Type of the module (Input, Processing, Output) |
| INGRESS_HOST | string | Host to which data will be received |
| INGRESS_PORT | string | Port to which data will be received |
bottle
requests
Input to this module is:
{
"alertMessage": "Device hf238hf23h7 (in Berlin) measured temperature 12 on 2022-09-25 15:35:17.31234"
}
Message send to the selected Telegram chat. Given the above input, message will be Device hf238hf23h7 (in Berlin) measured temperature 12 on 2022-09-25 15:35:17.31234.
Content type
Image
Digest
sha256:ad1c79552…
Size
49.2 MB
Last updated
almost 2 years ago
docker pull beetaone/telegram:v1.0.0