InputMediaPhoto
class InputMediaPhoto implements InputMediaInterface
Represents a photo to be sent.
Methods
No description
Type of the result, must be photo.
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://
Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing.
Optional. Mode for parsing entities in the photo caption. See formatting options for more details.
Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode.
Details
at line 17
__construct(string $type, string $media, string|null $caption = null, string|null $parse_mode = null, MessageEntity[]|null $caption_entities = null)
No description
at line 29
string
getType()
Type of the result, must be photo.
at line 37
string
getMedia()
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://
at line 45
string|null
getCaption()
Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing.
at line 53
string|null
getParseMode()
Optional. Mode for parsing entities in the photo caption. See formatting options for more details.
at line 63
array|null
getCaptionEntities()
Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode.