Body

The request body for SendPhotoApi

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
@SerialName(value = "business_connection_id")
var businessConnectionId: String?

Optional. Unique identifier of the business connection on behalf of which the message will be sent

Link copied to clipboard

Optional. Photo caption (may also be used when resending photos by file_id), 0-1024 characters after entities parsing

Link copied to clipboard
@SerialName(value = "caption_entities")
var captionEntities: MutableCollection<MessageEntity>?

Optional. A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode

Link copied to clipboard
@SerialName(value = "chat_id")
lateinit var chatId: ChatId

Required unique identifier for the target chat or username of the target channel (in the format @channelusername)

Link copied to clipboard
@SerialName(value = "disable_notification")
var disableNotification: Boolean?

Optional. Sends the message silently. Users will receive a notification with no sound.

Link copied to clipboard
@SerialName(value = "has_spoiler")
var hasSpoiler: Boolean?

Optional. Pass True if the photo needs to be covered with a spoiler animation

Link copied to clipboard
@SerialName(value = "message_thread_id")
var messageThreadId: Int?

Optional. Unique identifier for the target message thread (topic) of the forum; for forum supergroups only

Link copied to clipboard
@SerialName(value = "parse_mode")
var parseMode: String?

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

Link copied to clipboard
lateinit var photo: InputFile

Required. Photo to send. (See the documentation).

Link copied to clipboard
@SerialName(value = "protect_content")
var protectContent: Boolean?

Optional. Protects the contents of the sent message from forwarding and saving

Link copied to clipboard
@SerialName(value = "reply_markup")
var replyMarkup: ReplyMarkupWrapper?

Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account

Link copied to clipboard
@SerialName(value = "reply_parameters")
var replyParameters: ReplyParameters?

Optional. Description of the message to reply to

Functions

Link copied to clipboard