Class: TD::Types::InputChatPhoto::Animation

Inherits:
TD::Types::InputChatPhoto show all
Defined in:
lib/tdlib/types/input_chat_photo/animation.rb

Overview

An animation in MPEG4 format; must be square, at most 10 seconds long, have width between 160 and 800 and be at

most 2MB in size.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#animationTD::Types::InputFile

Animation to be set as profile photo. Only TD::Types::InputFile::Local and TD::Types::InputFile::Generated are allowed.

Returns:



8
9
10
# File 'lib/tdlib/types/input_chat_photo/animation.rb', line 8

def animation
  @animation
end

#main_frame_timestampFloat

Timestamp of the frame, which will be used as static chat photo.

Returns:

  • (Float)

    the current value of main_frame_timestamp



8
9
10
# File 'lib/tdlib/types/input_chat_photo/animation.rb', line 8

def main_frame_timestamp
  @main_frame_timestamp
end