/// <summary>
 /// Initializes a new audio media to send with an <see cref="InputMedia"/>
 /// </summary>
 public InputMediaAudio(InputMedia media)
 {
     Type  = "audio";
     Media = media;
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new video media to send with an <see cref="InputMedia"/>
 /// </summary>
 public InputMediaVideo(InputMedia media)
 {
     Type  = "video";
     Media = media;
 }
 /// <summary>
 /// Initializes a new document media to send with an <see cref="InputMedia"/>
 /// </summary>
 public InputMediaDocument(InputMedia media)
 {
     Type  = "document";
     Media = media;
 }
Exemple #4
0
 /// <summary>
 /// Initializes a new photo media to send with an <see cref="InputMedia"/>
 /// </summary>
 public InputMediaPhoto(InputMedia media)
 {
     Type  = "photo";
     Media = media;
 }
 /// <summary>
 /// Initializes a new animation media to send with an <see cref="InputMedia"/>
 /// </summary>
 public InputMediaAnimation(InputMedia media)
 {
     Type  = "animation";
     Media = media;
 }