Class: Ansible::Ruby::Modules::Telegram

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/notification/telegram.rb

Overview

Send notifications via telegram bot, to a verified group or user

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#chat_idInteger

Returns Telegram group or user chat_id.

Returns:

  • (Integer)

    Telegram group or user chat_id



24
# File 'lib/ansible/ruby/modules/generated/notification/telegram.rb', line 24

attribute :chat_id

#msgString

Returns What message you wish to send.

Returns:

  • (String)

    What message you wish to send.



12
# File 'lib/ansible/ruby/modules/generated/notification/telegram.rb', line 12

attribute :msg

#msg_format:plain, ...

Returns Message format. Formatting options ‘markdown` and `html` described in Telegram API docs (core.telegram.org/bots/api#formatting-options). If option `plain` set, message will not be formatted.

Returns:

  • (:plain, :markdown, :html, nil)

    Message format. Formatting options ‘markdown` and `html` described in Telegram API docs (core.telegram.org/bots/api#formatting-options). If option `plain` set, message will not be formatted.



16
# File 'lib/ansible/ruby/modules/generated/notification/telegram.rb', line 16

attribute :msg_format

#tokenString

Returns Token identifying your telegram bot.

Returns:

  • (String)

    Token identifying your telegram bot.



20
# File 'lib/ansible/ruby/modules/generated/notification/telegram.rb', line 20

attribute :token