ansible / ansible.builtin / v2.9.27 / module / telegram module for sending notifications via telegram | "added in version" 2.2 of ansible.builtin" Authors: Artem Feofanov (@tyouxa) preview | supported by communityansible.builtin.telegram (v2.9.27) — module
pip
Install with pip install ansible==2.9.27
Send notifications via telegram bot, to a verified group or user
- name: send a message to chat in playbook telegram: token: '9999999:XXXXXXXXXXXXXXXXXXXXXXX' chat_id: 000000 msg: Ansible task finished
msg: description: - What message you wish to send. required: true token: description: - Token identifying your telegram bot. required: true chat_id: description: - Telegram group or user chat_id required: true msg_format: choices: - plain - markdown - html default: plain description: - Message format. Formatting options `markdown` and `html` described in Telegram API docs (https://core.telegram.org/bots/api#formatting-options). If option `plain` set, message will not be formatted. version_added: '2.4' version_added_collection: ansible.builtin
msg: description: The message you attempted to send returned: success sample: Ansible task finished type: str telegram_error: description: Error message gotten from Telegram API returned: failure sample: 'Bad Request: message text is empty' type: str