InlineQueryResultCachedPhoto

data class InlineQueryResultCachedPhoto(id: String, photoFileId: String, title: String?, description: String?, caption: String?, parseMode: String?, captionEntities: List<MessageEntity>, replyMarkup: InlineKeyboardMarkup?, inputMessageContent: InputMessageContent?, type: String) : InlineQueryResult

Represents a link to a photo stored on the Telegram servers. By default, this photo will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo.

Parameters

id

Unique identifier for this result, 1-64 bytes

photoFileId

A valid file identifier of the photo

title

Optional. Title for the result

description

Optional. Short description of the result

caption

Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing

parseMode

Optional. Mode for parsing entities in the photo caption. See formatting options for more details.

captionEntities

Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode

replyMarkup

Optional. Inline keyboard attached to the message

inputMessageContent

Optional. Content of the message to be sent instead of the photo

type

Type of the result, must be photo

Constructors

InlineQueryResultCachedPhoto
Link copied to clipboard
common
fun InlineQueryResultCachedPhoto(id: String, photoFileId: String, title: String? = null, description: String? = null, caption: String? = null, parseMode: String? = null, captionEntities: List<MessageEntity> = emptyList(), replyMarkup: InlineKeyboardMarkup? = null, inputMessageContent: InputMessageContent? = null, type: String)
Unique identifier for this result, 1-64 bytes

Functions

component1
Link copied to clipboard
common
operator fun component1(): String
component10
Link copied to clipboard
common
operator fun component10(): String
component2
Link copied to clipboard
common
operator fun component2(): String
component3
Link copied to clipboard
common
operator fun component3(): String?
component4
Link copied to clipboard
common
operator fun component4(): String?
component5
Link copied to clipboard
common
operator fun component5(): String?
component6
Link copied to clipboard
common
operator fun component6(): String?
component7
Link copied to clipboard
common
operator fun component7(): List<MessageEntity>
component8
Link copied to clipboard
common
operator fun component8(): InlineKeyboardMarkup?
component9
Link copied to clipboard
common
operator fun component9(): InputMessageContent?
copy
Link copied to clipboard
common
fun copy(id: String, photoFileId: String, title: String? = null, description: String? = null, caption: String? = null, parseMode: String? = null, captionEntities: List<MessageEntity> = emptyList(), replyMarkup: InlineKeyboardMarkup? = null, inputMessageContent: InputMessageContent? = null, type: String): InlineQueryResultCachedPhoto
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

caption
Link copied to clipboard
common
val caption: String? = null
Optional.
captionEntities
Link copied to clipboard
common
val captionEntities: List<MessageEntity>
Optional.
description
Link copied to clipboard
common
val description: String? = null
Optional.
id
Link copied to clipboard
common
val id: String
Unique identifier for this result, 1-64 bytes
inputMessageContent
Link copied to clipboard
common
val inputMessageContent: InputMessageContent? = null
Optional.
parseMode
Link copied to clipboard
common
val parseMode: String? = null
Optional.
photoFileId
Link copied to clipboard
common
val photoFileId: String
A valid file identifier of the photo
replyMarkup
Link copied to clipboard
common
val replyMarkup: InlineKeyboardMarkup? = null
Optional.
title
Link copied to clipboard
common
val title: String? = null
Optional.
type
Link copied to clipboard
common
val type: String
Type of the result, must be photo