New in version 2.2.
parameter | required | default | choices | comments |
---|---|---|---|---|
chat_id |
yes | Telegram group or user chat_id | ||
msg |
yes | What message you wish to send. | ||
token |
yes | Token identifying your telegram bot. |
- name: send a message to chat in playbook telegram: token: 'bot9999999:XXXXXXXXXXXXXXXXXXXXXXX' chat_id: 000000 msg: Ansible task finished
Common return values are documented here Return Values, the following are the fields unique to this module:
name | description | returned | type | sample |
---|---|---|---|---|
msg | The message you attempted to send | success | string | Ansible task finished |
Note
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
This module is community maintained without core committer oversight.
For more information on what this means please read Module Support
For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Helping Testing PRs and Developing Modules.