Class InlineQueryResultCachedGifType.
Represents a link to an animated GIF file stored on the Telegram servers.
By default, this animated GIF file will be sent by the user with an optional caption.
Alternatively, you can use input_message_content to send a message with specified content instead of the animation.
Methods
create()
create(\TgBotApi\BotApiBase\Type\InlineQueryResult\string $id, \TgBotApi\BotApiBase\Type\InlineQueryResult\string $gifFileId, array $data = null
)
Static
Parameters
$id
$gifFileId
$data
Exceptions
\TgBotApi\BotApiBase\Exception\BadArgumentException |
|
fill()
fill(array $data, array $forbidden = array()
)
Inherited
Parameters
$data
array
$forbidden
array
Exceptions
\TgBotApi\BotApiBase\Exception\BadArgumentException |
|
Properties
Optional. Caption of the GIF file to be sent, 0-1024 characters.
$caption : string | null
Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode.
$captionEntities : array<mixed,\TgBotApi\BotApiBase\Type\MessageEntityType> | null
A valid file identifier for the GIF file.
$gifFileId : string
Optional. Content of the message to be sent instead of the GIF animation.
$inputMessageContent : \TgBotApi\BotApiBase\Type\InputMessageContent\InputMessageContentType | null
Optional. Send Markdown or HTML, if you want Telegram apps to show bold, italic,
fixed-width text or inline URLs in the media caption.
$parseMode : string | null
Optional. Title for the result.
$title : string | null