Module for sending messages via Telegram.
In order to send a message via the Telegram, certain configuration is required in /etc/salt/minion on the relevant minions or in the pillar. Some sample configs might look like:
telegram.chat_id: '123456789'
telegram.token: '00000000:xxxxxxxxxxxxxxxxxxxxxxxx'
Send a message to a Telegram chat.
message -- The message to send to the Telegram chat.
chat_id -- (optional) The Telegram chat id.
token -- (optional) The Telegram API token.
Boolean if message was sent successfully.
CLI Example:
salt '*' telegram.post_message message="Hello Telegram!"
Generated on April 30, 2024 at 17:51:03 UTC.
You are viewing docs for the latest stable release, 3007.0. Switch to docs for the previous stable release, 3006.8, or to a recent doc build from the master branch.
© 2024 VMware, Inc. | Privacy Policy