Class: FantasticRobot::Request::SendMessage

Inherits:
Base
  • Object
show all
Defined in:
lib/fantastic_robot/request/send_message.rb

Overview

This object represents a sendMessage request

Instance Attribute Summary collapse

Attributes inherited from Base

#method

Instance Method Summary collapse

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_idObject

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_previewObject

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_modeObject

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_markupObject

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_idObject

Returns the value of attribute reply_to_message_id.



5
6
7
# File 'lib/fantastic_robot/request/send_message.rb', line 5

def reply_to_message_id
  @reply_to_message_id
end

#textObject

Returns the value of attribute text.



5
6
7
# File 'lib/fantastic_robot/request/send_message.rb', line 5

def text
  @text
end