class Tourmaline::InputProfilePhotoAnimated

Overview

An animated profile photo in the MPEG4 format.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(type : String, animation : String, main_frame_timestamp : Float64 | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def animation : String #

The animated profile photo. Profile photos can't be reused and can only be uploaded as a new file, so you can pass "attach://<file_attach_name>" if the photo was uploaded using multipart/form-data under <file_attach_name>. More information on Sending Files: https://core.telegram.org/bots/api#sending-files


[View source]
def animation=(animation : String) #

The animated profile photo. Profile photos can't be reused and can only be uploaded as a new file, so you can pass "attach://<file_attach_name>" if the photo was uploaded using multipart/form-data under <file_attach_name>. More information on Sending Files: https://core.telegram.org/bots/api#sending-files


[View source]
def main_frame_timestamp : Float64 | Nil #

Optional. Timestamp in seconds of the frame that will be used as the static profile photo. Defaults to 0.0.


[View source]
def main_frame_timestamp=(main_frame_timestamp : Float64 | Nil) #

Optional. Timestamp in seconds of the frame that will be used as the static profile photo. Defaults to 0.0.


[View source]
def type : String #

Type of the profile photo, must be animated


[View source]
def type=(type : String) #

Type of the profile photo, must be animated


[View source]