Module for sending messages via Telegram.
configuration: | 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'
|
---|
salt.modules.telegram.
post_message
(message, chat_id=None, token=None)¶Send a message to a Telegram chat.
Parameters: |
|
---|---|
Returns: | Boolean if message was sent successfully. |
CLI Example:
salt '*' telegram.post_message message="Hello Telegram!"
Generated on February 22, 2019 at 06:58:17 MST.
You are viewing docs for the latest stable release, 2018.3.3. Switch to docs for the previous stable release, 2017.7.8, or to a recent doc build from the develop branch.
© 2019 SaltStack. All Rights Reserved, SaltStack Inc. | Privacy Policy