Class InputMedia
Represents a photo or video to be sent
Inheritance
System.Object
InputMedia
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.Upload
Assembly: TelegramBotApi.dll
Syntax
[JsonObject(MemberSerialization = MemberSerialization.OptIn, ItemNullValueHandling = NullValueHandling.Ignore)]
public abstract class InputMedia
Properties
| Improve this Doc View SourceCaption
Optional. Caption of the photo or video to be sent, 0-200 characters.
Declaration
[JsonProperty(PropertyName = "caption", NullValueHandling = NullValueHandling.Ignore)]
public string Caption { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Media
File to send. Can be SendFileAttach, SendFileId or SendFileUrl
Declaration
public SendFile Media { get; set; }
Property Value
Type | Description |
---|---|
SendFile |
ParseMode
Parsing mode of the caption, if any
Declaration
public ParseMode ParseMode { get; set; }
Property Value
Type | Description |
---|---|
ParseMode |
Type
The type of media
Declaration
[JsonProperty(PropertyName = "type")]
public abstract string Type { get; }
Property Value
Type | Description |
---|---|
System.String |