Skip to content

class Tourmaline::ChatPhoto
inherits Reference #

This object represents a chat photo.

Included modules

JSON::Serializable

Constructors#

.new(small_file_id, small_file_unique_id, big_file_id, big_file_unique_id) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#big_file_id : String #

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.

View source

#big_file_id=(big_file_id : String) #

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.

View source

#big_file_unique_id : String #

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.

View source

#big_file_unique_id=(big_file_unique_id : String) #

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.

View source

#small_file_id : String #

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.

View source

#small_file_id=(small_file_id : String) #

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.

View source

#small_file_unique_id : String #

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.

View source

#small_file_unique_id=(small_file_unique_id : String) #

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.

View source