Defines media content of a message.
inputMediaEmpty#9664f57f = InputMedia;
inputMediaUploadedPhoto#1e287d04 flags:# file:InputFile stickers:flags.0?Vector<InputDocument> ttl_seconds:flags.1?int = InputMedia;
inputMediaPhoto#b3ba0635 flags:# id:InputPhoto ttl_seconds:flags.0?int = InputMedia;
inputMediaGeoPoint#f9c44144 geo_point:InputGeoPoint = InputMedia;
inputMediaContact#f8ab7dfb phone_number:string first_name:string last_name:string vcard:string = InputMedia;
inputMediaUploadedDocument#5b38c6c1 flags:# nosound_video:flags.3?true force_file:flags.4?true file:InputFile thumb:flags.2?InputFile mime_type:string attributes:Vector<DocumentAttribute> stickers:flags.0?Vector<InputDocument> ttl_seconds:flags.1?int = InputMedia;
inputMediaDocument#23ab23d2 flags:# id:InputDocument ttl_seconds:flags.0?int = InputMedia;
inputMediaVenue#c13d1c11 geo_point:InputGeoPoint title:string address:string provider:string venue_id:string venue_type:string = InputMedia;
inputMediaPhotoExternal#e5bbfe1a flags:# url:string ttl_seconds:flags.0?int = InputMedia;
inputMediaDocumentExternal#fb52dc99 flags:# url:string ttl_seconds:flags.0?int = InputMedia;
inputMediaGame#d33f43f3 id:InputGame = InputMedia;
inputMediaInvoice#f4e096c3 flags:# title:string description:string photo:flags.0?InputWebDocument invoice:Invoice payload:bytes provider:string provider_data:DataJSON start_param:string = InputMedia;
inputMediaGeoLive#ce4e82fd flags:# stopped:flags.0?true geo_point:InputGeoPoint period:flags.1?int = InputMedia;
inputMediaPoll#f94e5f1 flags:# poll:Poll correct_answers:flags.0?Vector<bytes> solution:flags.1?string solution_entities:flags.1?Vector<MessageEntity> = InputMedia;
inputMediaDice#e66fbf7b emoticon:string = InputMedia;
Constructor | Description |
---|---|
inputMediaEmpty | Empty media content of a message. |
inputMediaUploadedPhoto | Photo |
inputMediaPhoto | Forwarded photo |
inputMediaGeoPoint | Map. |
inputMediaContact | Phone book contact |
inputMediaUploadedDocument | New document |
inputMediaDocument | Forwarded document |
inputMediaVenue | Can be used to send a venue geolocation. |
inputMediaPhotoExternal | New photo that will be uploaded by the server using the specified URL |
inputMediaDocumentExternal | Document that will be downloaded by the telegram servers |
inputMediaGame | A game |
inputMediaInvoice | Generated invoice of a bot payment |
inputMediaGeoLive | Live geolocation |
inputMediaPoll | A poll |
inputMediaDice | Send a dice-based animated sticker |
inputMediaStory | Forwarded story |
inputMediaWebPage | Specifies options that will be used to generate the link preview for the caption, or even a standalone link preview without an attached message. |
inputMediaPaidMedia | Paid media, see here ยป for more info. |