Class: Ansible::Ruby::Modules::Telegram
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Telegram
- 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
-
#chat_id ⇒ Integer
Telegram group or user chat_id.
-
#msg ⇒ String
What message you wish to send.
-
#msg_format ⇒ :plain, ...
Message format.
-
#token ⇒ String
Token identifying your telegram bot.
Methods inherited from Base
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_id ⇒ Integer
Returns Telegram group or user chat_id.
24 |
# File 'lib/ansible/ruby/modules/generated/notification/telegram.rb', line 24 attribute :chat_id |
#msg ⇒ String
Returns 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.
16 |
# File 'lib/ansible/ruby/modules/generated/notification/telegram.rb', line 16 attribute :msg_format |
#token ⇒ String
Returns Token identifying your telegram bot.
20 |
# File 'lib/ansible/ruby/modules/generated/notification/telegram.rb', line 20 attribute :token |