Class: FantasticRobot::Request::SendVoice
- 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
-
#chat_id ⇒ Object
Returns the value of attribute chat_id.
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#reply_markup ⇒ Object
Returns the value of attribute reply_markup.
-
#reply_to_message_id ⇒ Object
Returns the value of attribute reply_to_message_id.
-
#voice ⇒ Object
Returns the value of attribute voice.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SendVoice
constructor
A new instance of SendVoice.
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_id ⇒ Object
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 |
#duration ⇒ Object
Returns the value of attribute duration.
7 8 9 |
# File 'lib/fantastic_robot/request/send_voice.rb', line 7 def duration @duration end |
#reply_markup ⇒ Object
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_id ⇒ Object
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 end |
#voice ⇒ Object
Returns the value of attribute voice.
7 8 9 |
# File 'lib/fantastic_robot/request/send_voice.rb', line 7 def voice @voice end |