InputMediaPhoto

Description

Represents a photo to be sent.

Attributes

Name Type Description
type str Type of the result, must be photo
media Union[str, InputFile] File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass 'attach://' to upload a new one using multipart/form-data under name.
caption Optional[str] Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing
parse_mode Optional[str] Optional. Mode for parsing entities in the photo caption. See formatting options for more details.

Location

  • from aiogram.types import InputMediaPhoto
  • from aiogram.api.types import InputMediaPhoto
  • from aiogram.api.types.input_media_photo import InputMediaPhoto