Class: FantasticRobot::Request::SendVoice

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

Overview

This object represents a sendVoice request

Constant Summary collapse

MAX_FILE_SIZE =
50*1024*1024

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 = {}) ⇒ SendVoice

Returns a new instance of SendVoice.



15
16
17
18
# File 'lib/fantastic_robot/request/send_voice.rb', line 15

def initialize(attributes = {})
  super(attributes)
  @method = :sendVoice
end

Instance Attribute Details

#chat_idObject

Returns the value of attribute chat_id.



7
8
9
# File 'lib/fantastic_robot/request/send_voice.rb', line 7

def chat_id
  @chat_id
end

#durationObject

Returns the value of attribute duration.



7
8
9
# File 'lib/fantastic_robot/request/send_voice.rb', line 7

def duration
  @duration
end

#reply_markupObject

Returns the value of attribute reply_markup.



7
8
9
# File 'lib/fantastic_robot/request/send_voice.rb', line 7

def reply_markup
  @reply_markup
end

#reply_to_message_idObject

Returns the value of attribute reply_to_message_id.



7
8
9
# File 'lib/fantastic_robot/request/send_voice.rb', line 7

def reply_to_message_id
  @reply_to_message_id
end

#voiceObject

Returns the value of attribute voice.



7
8
9
# File 'lib/fantastic_robot/request/send_voice.rb', line 7

def voice
  @voice
end