Class: FantasticRobot::Request::SendMessage
- Defined in:
- lib/fantastic_robot/request/send_message.rb
Overview
This object represents a sendMessage request
Instance Attribute Summary collapse
-
#chat_id ⇒ Object
Returns the value of attribute chat_id.
-
#disable_web_page_preview ⇒ Object
Returns the value of attribute disable_web_page_preview.
-
#parse_mode ⇒ Object
Returns the value of attribute parse_mode.
-
#reply_markup ⇒ Object
Returns the value of attribute reply_markup.
-
#reply_to_message_id ⇒ Object
Returns the value of attribute reply_to_message_id.
-
#text ⇒ Object
Returns the value of attribute text.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SendMessage
constructor
A new instance of SendMessage.
Methods inherited from Base
#attributes, #send_request, #to_h
Constructor Details
#initialize(attributes = {}) ⇒ SendMessage
Returns a new instance of SendMessage.
12 13 14 15 |
# File 'lib/fantastic_robot/request/send_message.rb', line 12 def initialize(attributes = {}) super(attributes) @method = :sendMessage end |
Instance Attribute Details
#chat_id ⇒ Object
Returns the value of attribute chat_id.
5 6 7 |
# File 'lib/fantastic_robot/request/send_message.rb', line 5 def chat_id @chat_id end |
#disable_web_page_preview ⇒ Object
Returns the value of attribute disable_web_page_preview.
5 6 7 |
# File 'lib/fantastic_robot/request/send_message.rb', line 5 def disable_web_page_preview @disable_web_page_preview end |
#parse_mode ⇒ Object
Returns the value of attribute parse_mode.
5 6 7 |
# File 'lib/fantastic_robot/request/send_message.rb', line 5 def parse_mode @parse_mode end |
#reply_markup ⇒ Object
Returns the value of attribute reply_markup.
5 6 7 |
# File 'lib/fantastic_robot/request/send_message.rb', line 5 def reply_markup @reply_markup end |
#reply_to_message_id ⇒ Object
Returns the value of attribute reply_to_message_id.
5 6 7 |
# File 'lib/fantastic_robot/request/send_message.rb', line 5 def end |
#text ⇒ Object
Returns the value of attribute text.
5 6 7 |
# File 'lib/fantastic_robot/request/send_message.rb', line 5 def text @text end |