Class: TD::Types::PushMessageContent::MediaAlbum

Inherits:
TD::Types::PushMessageContent show all
Defined in:
lib/tdlib/types/push_message_content/media_album.rb

Overview

A media album.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#has_audiosBoolean

True, if the album has at least one audio file.

Returns:

  • (Boolean)

    the current value of has_audios



9
10
11
# File 'lib/tdlib/types/push_message_content/media_album.rb', line 9

def has_audios
  @has_audios
end

#has_documentsBoolean

True, if the album has at least one document.

Returns:

  • (Boolean)

    the current value of has_documents



9
10
11
# File 'lib/tdlib/types/push_message_content/media_album.rb', line 9

def has_documents
  @has_documents
end

#has_photosBoolean

True, if the album has at least one photo.

Returns:

  • (Boolean)

    the current value of has_photos



9
10
11
# File 'lib/tdlib/types/push_message_content/media_album.rb', line 9

def has_photos
  @has_photos
end

#has_videosBoolean

True, if the album has at least one video.

Returns:

  • (Boolean)

    the current value of has_videos



9
10
11
# File 'lib/tdlib/types/push_message_content/media_album.rb', line 9

def has_videos
  @has_videos
end

#total_countInteger

Number of messages in the album.

Returns:

  • (Integer)

    the current value of total_count



9
10
11
# File 'lib/tdlib/types/push_message_content/media_album.rb', line 9

def total_count
  @total_count
end