Class Animation
You can provide an animation for your game so that it looks stylish in chats (check out Lumberjack for an example). This object represents an animation file to be displayed in the message containing a game.
Inheritance
System.Object
Animation
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TelegramBotApi.Types.Game
Assembly: TelegramBotApi.dll
Syntax
[JsonObject(MemberSerialization = MemberSerialization.OptIn, ItemNullValueHandling = NullValueHandling.Ignore)]
public class Animation
Properties
| Improve this Doc View SourceFileId
Unique file identifier
Declaration
[JsonProperty(PropertyName = "file_id", Required = Required.Always)]
public string FileId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
FileName
Optional. Original animation filename as defined by sender
Declaration
[JsonProperty(PropertyName = "file_name")]
public string FileName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
FileSize
Optional. File size
Declaration
[JsonProperty(PropertyName = "file_size")]
public int FileSize { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
MimeType
Optional. MIME type of the file as defined by sender
Declaration
[JsonProperty(PropertyName = "mime_type")]
public string MimeType { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Thumb
Optional. Animation thumbnail as defined by sender
Declaration
[JsonProperty(PropertyName = "thumb")]
public PhotoSize Thumb { get; set; }
Property Value
Type | Description |
---|---|
PhotoSize |