Class: FantasticRobot::Request::SendVideo
- Defined in:
- lib/fantastic_robot/request/send_video.rb
Overview
This object represents a sendVideo request
Constant Summary collapse
- MAX_FILE_SIZE =
50*1024*1024
Instance Attribute Summary collapse
-
#caption ⇒ Object
Returns the value of attribute caption.
-
#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.
-
#video ⇒ Object
Returns the value of attribute video.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SendVideo
constructor
A new instance of SendVideo.
Methods inherited from Base
#attributes, #send_request, #to_h
Constructor Details
#initialize(attributes = {}) ⇒ SendVideo
Returns a new instance of SendVideo.
15 16 17 18 |
# File 'lib/fantastic_robot/request/send_video.rb', line 15 def initialize(attributes = {}) super(attributes) @method = :sendVideo end |
Instance Attribute Details
#caption ⇒ Object
Returns the value of attribute caption.
7 8 9 |
# File 'lib/fantastic_robot/request/send_video.rb', line 7 def caption @caption end |
#chat_id ⇒ Object
Returns the value of attribute chat_id.
7 8 9 |
# File 'lib/fantastic_robot/request/send_video.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_video.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_video.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_video.rb', line 7 def @reply_to_message_id end |
#video ⇒ Object
Returns the value of attribute video.
7 8 9 |
# File 'lib/fantastic_robot/request/send_video.rb', line 7 def video @video end |