Show / Hide Table of Contents

Class InputMedia

Represents a photo or video to be sent

Inheritance
System.Object
InputMedia
InputMediaAnimation
InputMediaAudio
InputMediaDocument
InputMediaPhoto
InputMediaVideo
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 Source

Caption

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
| Improve this Doc View Source

Media

File to send. Can be SendFileAttach, SendFileId or SendFileUrl

Declaration
public SendFile Media { get; set; }
Property Value
Type Description
SendFile
| Improve this Doc View Source

ParseMode

Parsing mode of the caption, if any

Declaration
public ParseMode ParseMode { get; set; }
Property Value
Type Description
ParseMode
| Improve this Doc View Source

Type

The type of media

Declaration
[JsonProperty(PropertyName = "type")]
public abstract string Type { get; }
Property Value
Type Description
System.String
  • Improve this Doc
  • View Source
Back to top Generated by DocFX