Class: ChatPhoto
- Inherits:
-
Object
- Object
- ChatPhoto
- Defined in:
- lib/objects/chat_photo.rb
Overview
Monday
, August
24
2020
EAT
This object represents a chat photo.
Instance Method Summary collapse
-
#big_file_id ⇒ Object
File identifier of big (640x640) chat photo.
-
#big_file_unique_id ⇒ Object
Unique file identifier of big (640x640) chat photo, which is supposed to be the same over time and for different bots.
-
#initialize(photo) ⇒ ChatPhoto
constructor
:nodoc:.
-
#small_file_id ⇒ Object
File identifier of small (160x160) chat photo.
-
#small_file_unique_id ⇒ Object
Unique file identifier of small (160x160) chat photo, which is supposed to be the same over time and for different bots.
Constructor Details
#initialize(photo) ⇒ ChatPhoto
:nodoc:
8 9 10 |
# File 'lib/objects/chat_photo.rb', line 8 def initialize(photo) # :nodoc: @photo = photo end |
Instance Method Details
#big_file_id ⇒ Object
File identifier of big (640x640) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed.
27 28 29 |
# File 'lib/objects/chat_photo.rb', line 27 def big_file_id @photo.big_file_id end |
#big_file_unique_id ⇒ Object
Unique file identifier of big (640x640) chat photo, which is supposed to be the same over time and for different bots. Can’t be used to download or reuse the file.
34 35 36 |
# File 'lib/objects/chat_photo.rb', line 34 def big_file_unique_id @photo.big_file_unique_id end |
#small_file_id ⇒ Object
File identifier of small (160x160) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed.
14 15 16 |
# File 'lib/objects/chat_photo.rb', line 14 def small_file_id @photo.small_file_id end |
#small_file_unique_id ⇒ Object
Unique file identifier of small (160x160) chat photo, which is supposed to be the same over time and for different bots. Can’t be used to download or reuse the file.
21 22 23 |
# File 'lib/objects/chat_photo.rb', line 21 def small_file_unique_id @photo.small_file_unique_id end |