InputBotInlineResultPhoto

class pyrogram.raw.types.InputBotInlineResultPhoto

Photo

Constructor of InputBotInlineResult.

Details:
  • Layer: 223

  • ID: A8D864A7

Parameters:
  • id (str) – Result ID

  • type (str) – Result type (see bot API docs)

  • photo (InputPhoto) – Photo to send

  • send_message (InputBotInlineMessage) – Message to send when the result is selected

TL Schema

inputBotInlineResultPhoto#a8d864a7
id:string
type:string
photo:InputPhoto
send_message:InputBotInlineMessage

= InputBotInlineResult

Parameter Tree

InputBotInlineResultPhoto
├── idstring
├── typestring
├── photoInputPhoto
│ ├── InputPhotoEmpty
│ └── InputPhoto
│ ├── idlong
│ ├── access_hashlong
│ └── file_referencebytes
└── send_messageInputBotInlineMessage
│ ├── invert_mediatrue (optional)
│ ├── messagestring
│ ├── entitiesVector < MessageEntity > (optional)
│ │ ├── MessageEntityUnknown
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityMention
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityHashtag
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityBotCommand
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityUrl
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityEmail
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityBold
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityItalic
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityCode
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityPre
│ │ │ ├── offsetint
│ │ │ ├── lengthint
│ │ │ └── languagestring
│ │ ├── MessageEntityTextUrl
│ │ │ ├── offsetint
│ │ │ ├── lengthint
│ │ │ └── urlstring
│ │ ├── MessageEntityMentionName
│ │ │ ├── offsetint
│ │ │ ├── lengthint
│ │ │ └── user_idlong
│ │ │ ├── offsetint
│ │ │ ├── lengthint
│ │ │ └── user_idInputUser
│ │ │ ├── InputUserEmpty
│ │ │ ├── InputUserSelf
│ │ │ ├── InputUser
│ │ │ └── InputUserFromMessage
│ │ ├── MessageEntityPhone
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityCashtag
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityUnderline
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityStrike
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityBankCard
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntitySpoiler
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityCustomEmoji
│ │ │ ├── offsetint
│ │ │ ├── lengthint
│ │ │ └── document_idlong
│ │ ├── MessageEntityBlockquote
│ │ │ ├── collapsedtrue (optional)
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ └── MessageEntityFormattedDate
│ │ ├── relativetrue (optional)
│ │ ├── short_timetrue (optional)
│ │ ├── long_timetrue (optional)
│ │ ├── short_datetrue (optional)
│ │ ├── long_datetrue (optional)
│ │ ├── day_of_weektrue (optional)
│ │ ├── offsetint
│ │ ├── lengthint
│ │ └── dateint
│ └── reply_markupReplyMarkup (optional)
│ ├── ReplyKeyboardHide
│ │ └── selectivetrue (optional)
│ │ ├── single_usetrue (optional)
│ │ ├── selectivetrue (optional)
│ │ └── placeholderstring (optional)
│ ├── ReplyKeyboardMarkup
│ │ ├── resizetrue (optional)
│ │ ├── single_usetrue (optional)
│ │ ├── selectivetrue (optional)
│ │ ├── persistenttrue (optional)
│ │ ├── rowsVector < KeyboardButtonRow >
│ │ │ └── KeyboardButtonRow
│ │ └── placeholderstring (optional)
│ └── ReplyInlineMarkup
│ └── rowsVector < KeyboardButtonRow >
│ └── KeyboardButtonRow
│ ├── no_webpagetrue (optional)
│ ├── invert_mediatrue (optional)
│ ├── messagestring
│ ├── entitiesVector < MessageEntity > (optional)
│ │ ├── MessageEntityUnknown
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityMention
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityHashtag
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityBotCommand
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityUrl
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityEmail
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityBold
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityItalic
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityCode
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityPre
│ │ │ ├── offsetint
│ │ │ ├── lengthint
│ │ │ └── languagestring
│ │ ├── MessageEntityTextUrl
│ │ │ ├── offsetint
│ │ │ ├── lengthint
│ │ │ └── urlstring
│ │ ├── MessageEntityMentionName
│ │ │ ├── offsetint
│ │ │ ├── lengthint
│ │ │ └── user_idlong
│ │ │ ├── offsetint
│ │ │ ├── lengthint
│ │ │ └── user_idInputUser
│ │ │ ├── InputUserEmpty
│ │ │ ├── InputUserSelf
│ │ │ ├── InputUser
│ │ │ └── InputUserFromMessage
│ │ ├── MessageEntityPhone
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityCashtag
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityUnderline
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityStrike
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityBankCard
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntitySpoiler
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ ├── MessageEntityCustomEmoji
│ │ │ ├── offsetint
│ │ │ ├── lengthint
│ │ │ └── document_idlong
│ │ ├── MessageEntityBlockquote
│ │ │ ├── collapsedtrue (optional)
│ │ │ ├── offsetint
│ │ │ └── lengthint
│ │ └── MessageEntityFormattedDate
│ │ ├── relativetrue (optional)
│ │ ├── short_timetrue (optional)
│ │ ├── long_timetrue (optional)
│ │ ├── short_datetrue (optional)
│ │ ├── long_datetrue (optional)
│ │ ├── day_of_weektrue (optional)
│ │ ├── offsetint
│ │ ├── lengthint
│ │ └── dateint
│ └── reply_markupReplyMarkup (optional)
│ ├── ReplyKeyboardHide
│ │ └── selectivetrue (optional)
│ │ ├── single_usetrue (optional)
│ │ ├── selectivetrue (optional)
│ │ └── placeholderstring (optional)
│ ├── ReplyKeyboardMarkup
│ │ ├── resizetrue (optional)
│ │ ├── single_usetrue (optional)
│ │ ├── selectivetrue (optional)
│ │ ├── persistenttrue (optional)
│ │ ├── rowsVector < KeyboardButtonRow >
│ │ │ └── KeyboardButtonRow
│ │ └── placeholderstring (optional)
│ └── ReplyInlineMarkup
│ └── rowsVector < KeyboardButtonRow >
│ └── KeyboardButtonRow
│ ├── geo_pointInputGeoPoint
│ │ ├── InputGeoPointEmpty
│ │ └── InputGeoPoint
│ │ ├── latdouble
│ │ ├── longdouble
│ │ └── accuracy_radiusint (optional)
│ ├── headingint (optional)
│ ├── periodint (optional)
│ ├── proximity_notification_radiusint (optional)
│ └── reply_markupReplyMarkup (optional)
│ ├── ReplyKeyboardHide
│ │ └── selectivetrue (optional)
│ │ ├── single_usetrue (optional)
│ │ ├── selectivetrue (optional)
│ │ └── placeholderstring (optional)
│ ├── ReplyKeyboardMarkup
│ │ ├── resizetrue (optional)
│ │ ├── single_usetrue (optional)
│ │ ├── selectivetrue (optional)
│ │ ├── persistenttrue (optional)
│ │ ├── rowsVector < KeyboardButtonRow >
│ │ │ └── KeyboardButtonRow
│ │ └── placeholderstring (optional)
│ └── ReplyInlineMarkup
│ └── rowsVector < KeyboardButtonRow >
│ └── KeyboardButtonRow
│ ├── geo_pointInputGeoPoint
│ │ ├── InputGeoPointEmpty
│ │ └── InputGeoPoint
│ │ ├── latdouble
│ │ ├── longdouble
│ │ └── accuracy_radiusint (optional)
│ ├── titlestring
│ ├── addressstring
│ ├── providerstring
│ ├── venue_idstring
│ ├── venue_typestring
│ └── reply_markupReplyMarkup (optional)
│ ├── ReplyKeyboardHide
│ │ └── selectivetrue (optional)
│ │ ├── single_usetrue (optional)
│ │ ├── selectivetrue (optional)
│ │ └── placeholderstring (optional)
│ ├── ReplyKeyboardMarkup
│ │ ├── resizetrue (optional)
│ │ ├── single_usetrue (optional)
│ │ ├── selectivetrue (optional)
│ │ ├── persistenttrue (optional)
│ │ ├── rowsVector < KeyboardButtonRow >
│ │ │ └── KeyboardButtonRow
│ │ └── placeholderstring (optional)
│ └── ReplyInlineMarkup
│ └── rowsVector < KeyboardButtonRow >
│ └── KeyboardButtonRow
│ ├── phone_numberstring
│ ├── first_namestring
│ ├── last_namestring
│ ├── vcardstring
│ └── reply_markupReplyMarkup (optional)
│ ├── ReplyKeyboardHide
│ │ └── selectivetrue (optional)
│ │ ├── single_usetrue (optional)
│ │ ├── selectivetrue (optional)
│ │ └── placeholderstring (optional)
│ ├── ReplyKeyboardMarkup
│ │ ├── resizetrue (optional)
│ │ ├── single_usetrue (optional)
│ │ ├── selectivetrue (optional)
│ │ ├── persistenttrue (optional)
│ │ ├── rowsVector < KeyboardButtonRow >
│ │ │ └── KeyboardButtonRow
│ │ └── placeholderstring (optional)
│ └── ReplyInlineMarkup
│ └── rowsVector < KeyboardButtonRow >
│ └── KeyboardButtonRow
│ └── reply_markupReplyMarkup (optional)
│ ├── ReplyKeyboardHide
│ │ └── selectivetrue (optional)
│ │ ├── single_usetrue (optional)
│ │ ├── selectivetrue (optional)
│ │ └── placeholderstring (optional)
│ ├── ReplyKeyboardMarkup
│ │ ├── resizetrue (optional)
│ │ ├── single_usetrue (optional)
│ │ ├── selectivetrue (optional)
│ │ ├── persistenttrue (optional)
│ │ ├── rowsVector < KeyboardButtonRow >
│ │ │ └── KeyboardButtonRow
│ │ └── placeholderstring (optional)
│ └── ReplyInlineMarkup
│ └── rowsVector < KeyboardButtonRow >
│ └── KeyboardButtonRow
│ ├── titlestring
│ ├── descriptionstring
│ ├── photoInputWebDocument (optional)
│ │ └── InputWebDocument
│ │ ├── urlstring
│ │ ├── sizeint
│ │ ├── mime_typestring
│ │ └── attributesVector < DocumentAttribute >
│ │ ├── DocumentAttributeImageSize
│ │ ├── DocumentAttributeAnimated
│ │ ├── DocumentAttributeSticker
│ │ ├── DocumentAttributeVideo
│ │ ├── DocumentAttributeAudio
│ │ ├── DocumentAttributeFilename
│ ├── invoiceInvoice
│ │ └── Invoice
│ │ ├── testtrue (optional)
│ │ ├── name_requestedtrue (optional)
│ │ ├── phone_requestedtrue (optional)
│ │ ├── email_requestedtrue (optional)
│ │ ├── shipping_address_requestedtrue (optional)
│ │ ├── flexibletrue (optional)
│ │ ├── phone_to_providertrue (optional)
│ │ ├── email_to_providertrue (optional)
│ │ ├── recurringtrue (optional)
│ │ ├── currencystring
│ │ ├── pricesVector < LabeledPrice >
│ │ │ └── LabeledPrice
│ │ ├── max_tip_amountlong (optional)
│ │ ├── suggested_tip_amountsVector < long > (optional)
│ │ ├── terms_urlstring (optional)
│ │ └── subscription_periodint (optional)
│ ├── payloadbytes
│ ├── providerstring
│ ├── provider_dataDataJSON
│ │ └── DataJSON
│ │ └── datastring
│ └── reply_markupReplyMarkup (optional)
│ ├── ReplyKeyboardHide
│ │ └── selectivetrue (optional)
│ │ ├── single_usetrue (optional)
│ │ ├── selectivetrue (optional)
│ │ └── placeholderstring (optional)
│ ├── ReplyKeyboardMarkup
│ │ ├── resizetrue (optional)
│ │ ├── single_usetrue (optional)
│ │ ├── selectivetrue (optional)
│ │ ├── persistenttrue (optional)
│ │ ├── rowsVector < KeyboardButtonRow >
│ │ │ └── KeyboardButtonRow
│ │ └── placeholderstring (optional)
│ └── ReplyInlineMarkup
│ └── rowsVector < KeyboardButtonRow >
│ └── KeyboardButtonRow
├── invert_mediatrue (optional)
├── force_large_mediatrue (optional)
├── force_small_mediatrue (optional)
├── optionaltrue (optional)
├── messagestring
├── entitiesVector < MessageEntity > (optional)
│ ├── MessageEntityUnknown
│ │ ├── offsetint
│ │ └── lengthint
│ ├── MessageEntityMention
│ │ ├── offsetint
│ │ └── lengthint
│ ├── MessageEntityHashtag
│ │ ├── offsetint
│ │ └── lengthint
│ │ ├── offsetint
│ │ └── lengthint
│ ├── MessageEntityUrl
│ │ ├── offsetint
│ │ └── lengthint
│ ├── MessageEntityEmail
│ │ ├── offsetint
│ │ └── lengthint
│ ├── MessageEntityBold
│ │ ├── offsetint
│ │ └── lengthint
│ ├── MessageEntityItalic
│ │ ├── offsetint
│ │ └── lengthint
│ ├── MessageEntityCode
│ │ ├── offsetint
│ │ └── lengthint
│ ├── MessageEntityPre
│ │ ├── offsetint
│ │ ├── lengthint
│ │ └── languagestring
│ ├── MessageEntityTextUrl
│ │ ├── offsetint
│ │ ├── lengthint
│ │ └── urlstring
│ │ ├── offsetint
│ │ ├── lengthint
│ │ └── user_idlong
│ │ ├── offsetint
│ │ ├── lengthint
│ │ └── user_idInputUser
│ │ ├── InputUserEmpty
│ │ ├── InputUserSelf
│ │ ├── InputUser
│ │ └── InputUserFromMessage
│ ├── MessageEntityPhone
│ │ ├── offsetint
│ │ └── lengthint
│ ├── MessageEntityCashtag
│ │ ├── offsetint
│ │ └── lengthint
│ │ ├── offsetint
│ │ └── lengthint
│ ├── MessageEntityStrike
│ │ ├── offsetint
│ │ └── lengthint
│ ├── MessageEntityBankCard
│ │ ├── offsetint
│ │ └── lengthint
│ ├── MessageEntitySpoiler
│ │ ├── offsetint
│ │ └── lengthint
│ │ ├── offsetint
│ │ ├── lengthint
│ │ └── document_idlong
│ │ ├── collapsedtrue (optional)
│ │ ├── offsetint
│ │ └── lengthint
│ ├── relativetrue (optional)
│ ├── short_timetrue (optional)
│ ├── long_timetrue (optional)
│ ├── short_datetrue (optional)
│ ├── long_datetrue (optional)
│ ├── day_of_weektrue (optional)
│ ├── offsetint
│ ├── lengthint
│ └── dateint
├── urlstring
└── reply_markupReplyMarkup (optional)
│ └── selectivetrue (optional)
│ ├── single_usetrue (optional)
│ ├── selectivetrue (optional)
│ └── placeholderstring (optional)
│ ├── resizetrue (optional)
│ ├── single_usetrue (optional)
│ ├── selectivetrue (optional)
│ ├── persistenttrue (optional)
│ ├── rowsVector < KeyboardButtonRow >
│ │ └── KeyboardButtonRow
│ └── placeholderstring (optional)
└── rowsVector < KeyboardButtonRow >

Example

InputBotInlineResultPhoto(
    id="text",
    type="text",
    photo=InputPhotoEmpty(),
    send_message=InputBotInlineMessageMediaAuto(message="Hello"),
)