Animation - reloadlife/telebot GitHub Wiki
Animation
- Animation represents an animation file (GIF or H.264/MPEG-4 AVC video without sound).
Telegram Documentation
Structure
this type Implements:
package telebot
type Animation struct {
FileID string
FileUniqueID string
Width int
Height int
Duration int
Thumbnail *PhotoSize
FileName string
MIME string
Size int64
}
Fields
| Field | Type | Description |
|---|---|---|
FileID |
string |
The identifier for this file, used for downloading or reusing the file. |
FileUniqueID |
string |
The unique identifier for this file, supposed to be the same over time and for different bots. Cannot be used to download or reuse. |
Width |
int |
The video width as defined by the sender. |
Height |
int |
The video height as defined by the sender. |
Duration |
int |
The duration of the video in seconds as defined by the sender. |
Thumbnail |
*PhotoSize | The Animation Thumbnail as defined by the sender. |
FileName |
string |
The original animation filename as defined by the sender. |
MIME |
string |
The MIME type of the file as defined by the sender. |
Size |
int64 |
The file size in bytes. |
Functions
SendAnimation(Recipient, File, ...options) (Message, error) {}
Panics
- bad caption
- invalid option provided
Available Options
| Field | Type | Description |
|---|---|---|
ThreadMessageID |
*ThreadMessageID | ThreadMessageID should be provided as a pointer (to send a message in a Telegram Thread (Forum) |
Caption |
string |
Caption |
ParseMode |
ParseMode | ParseMode of the Caption |
[]Entity or Entity |
Entity | List of special entities that appear in the caption, which can be specified instead of parse_mode |
ReplyMarkup |
ReplyMarkup | InlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReply |
ReplyParameters |
ReplyParameters | Additional interface options for replies |
Duration |
go:time.Duration |
Duration of the animation in seconds |
Width |
Width | Width of the animation |
Height |
Height | Height of the animation |
Thumbnail |
*File | Thumbnail of the animation |
Silent |
DisableNotification | Sends the message silently. Users will receive a notification with no sound. |
Protected |
Protected | Protected Content |
HasSpoiler |
HasSpoiler | The message is a spoiler |