Class: FantasticRobot::Request::SendPhoto
- Defined in:
- lib/fantastic_robot/request/send_photo.rb
Overview
This object represents a sendPhoto request
Instance Attribute Summary collapse
-
#caption ⇒ Object
Returns the value of attribute caption.
-
#chat_id ⇒ Object
Returns the value of attribute chat_id.
-
#photo ⇒ Object
Returns the value of attribute photo.
-
#reply_markup ⇒ Object
Returns the value of attribute reply_markup.
-
#reply_to_message_id ⇒ Object
Returns the value of attribute reply_to_message_id.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SendPhoto
constructor
A new instance of SendPhoto.
Methods inherited from Base
#attributes, #send_request, #to_h
Constructor Details
#initialize(attributes = {}) ⇒ SendPhoto
Returns a new instance of SendPhoto.
11 12 13 14 |
# File 'lib/fantastic_robot/request/send_photo.rb', line 11 def initialize(attributes = {}) super(attributes) @method = :sendPhoto end |
Instance Attribute Details
#caption ⇒ Object
Returns the value of attribute caption.
5 6 7 |
# File 'lib/fantastic_robot/request/send_photo.rb', line 5 def caption @caption end |
#chat_id ⇒ Object
Returns the value of attribute chat_id.
5 6 7 |
# File 'lib/fantastic_robot/request/send_photo.rb', line 5 def chat_id @chat_id end |
#photo ⇒ Object
Returns the value of attribute photo.
5 6 7 |
# File 'lib/fantastic_robot/request/send_photo.rb', line 5 def photo @photo end |
#reply_markup ⇒ Object
Returns the value of attribute reply_markup.
5 6 7 |
# File 'lib/fantastic_robot/request/send_photo.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_photo.rb', line 5 def @reply_to_message_id end |