PhotoContent

@Serializable
data class PhotoContent(val mediaCollection: Photo, val text: String? = null, val textSources: TextSourcesList = emptyList(), val spoilered: Boolean = false, val quote: TextQuote? = null) : MediaCollectionContent<PhotoSize> , VisualMediaGroupPartContent, WithOptionalQuoteInfo

Constructors

Link copied to clipboard
constructor(mediaCollection: Photo, text: String? = null, textSources: TextSourcesList = emptyList(), spoilered: Boolean = false, quote: TextQuote? = null)

Properties

Link copied to clipboard
open override val media: PhotoSize
Link copied to clipboard
open override val mediaCollection: Photo
Link copied to clipboard
open override val quote: TextQuote? = null
Link copied to clipboard
open override val spoilered: Boolean = false
Link copied to clipboard
open override val text: String? = null
Link copied to clipboard
open override val textSources: TextSourcesList

Full list of TextSources

Functions

Link copied to clipboard
Link copied to clipboard
open override fun asTelegramMedia(): TelegramMediaPhoto
Link copied to clipboard
open override fun createResend(chatId: ChatIdentifier, messageThreadId: MessageThreadId?, businessConnectionId: BusinessConnectionId?, disableNotification: Boolean, protectContent: Boolean, replyParameters: ReplyParameters?, replyMarkup: KeyboardMarkup?): Request<ContentMessage<PhotoContent>>
open fun createResend(chatId: ChatIdentifier, messageThreadId: MessageThreadId? = chatId.threadId, businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId, disableNotification: Boolean = false, protectContent: Boolean = false, replyToMessageId: MessageId?, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): Request<out AccessibleMessage>