Class: FantasticRobot::Request::SendPhoto

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

Overview

This object represents a sendPhoto 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 = {}) ⇒ 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

#captionObject

Returns the value of attribute caption.



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

def caption
  @caption
end

#chat_idObject

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

#photoObject

Returns the value of attribute photo.



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

def photo
  @photo
end

#reply_markupObject

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_idObject

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
  @reply_to_message_id
end