Class: Telegram::Bot::Types::ChatPhoto
- Inherits:
-
Object
- Object
- Telegram::Bot::Types::ChatPhoto
- Defined in:
- lib/telegram/bot/types/chat_photo.rb
Instance Attribute Summary collapse
-
#big_file_id ⇒ Object
Returns the value of attribute big_file_id.
-
#small_file_id ⇒ Object
Returns the value of attribute small_file_id.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ ChatPhoto
constructor
A new instance of ChatPhoto.
Constructor Details
#initialize(attributes) ⇒ ChatPhoto
Returns a new instance of ChatPhoto.
6 7 8 |
# File 'lib/telegram/bot/types/chat_photo.rb', line 6 def initialize(attributes) attributes.each { |k, v| self.send("#{k}=", v) if self.respond_to? k } end |
Instance Attribute Details
#big_file_id ⇒ Object
Returns the value of attribute big_file_id.
3 4 5 |
# File 'lib/telegram/bot/types/chat_photo.rb', line 3 def big_file_id @big_file_id end |
#small_file_id ⇒ Object
Returns the value of attribute small_file_id.
3 4 5 |
# File 'lib/telegram/bot/types/chat_photo.rb', line 3 def small_file_id @small_file_id end |