telegram
¶
Module for sending messages via Telegram.
- saltext.telegram.modules.telegram.post_message(message, chat_id=None, token=None)[source]¶
Send a message to a Telegram chat.
- Parameters:
message – The message to send to the Telegram chat.
chat_id – (optional) The Telegram chat id.
token – (optional) The Telegram API token.
- Returns:
Boolean if message was sent successfully.
CLI Example:
salt '*' telegram.post_message message="Hello Telegram!"