BotInlineMessageMediaVenue

class pyrogram.raw.types.BotInlineMessageMediaVenue

Send a venue

Constructor of BotInlineMessage.

Details:
  • Layer: 227

  • ID: 8A86659C

Parameters:
  • geo (GeoPoint) – Geolocation of venue

  • title (str) – Venue name

  • address (str) – Address

  • provider (str) – Venue provider: currently only “foursquare” and “gplaces” (Google Places) need to be supported

  • venue_id (str) – Venue ID in the provider’s database

  • venue_type (str) – Venue type in the provider’s database

  • reply_markup (ReplyMarkup, optional) – Inline keyboard

TL Schema

botInlineMessageMediaVenue#8a86659c
flags:#
geo:GeoPoint
title:string
address:string
provider:string
venue_id:string
venue_type:string
reply_markup:flags.2?ReplyMarkup

= BotInlineMessage

Parameter Tree

BotInlineMessageMediaVenue
├── geo → GeoPoint
│ ├── GeoPointEmpty
│ └── GeoPoint
│ ├── long → double
│ ├── lat → double
│ ├── access_hash → long
│ └── accuracy_radius → int (optional)
├── title → string
├── address → string
├── provider → string
├── venue_id → string
├── venue_type → string
└── reply_markup → ReplyMarkup (optional)
│ └── selective → true (optional)
│ ├── single_use → true (optional)
│ ├── selective → true (optional)
│ └── placeholder → string (optional)
│ ├── resize → true (optional)
│ ├── single_use → true (optional)
│ ├── selective → true (optional)
│ ├── persistent → true (optional)
│ ├── rows → Vector < KeyboardButtonRow >
│ │ └── KeyboardButtonRow
│ │ └── buttons → Vector < KeyboardButton >
│ │ ├── KeyboardButton
│ │ ├── KeyboardButtonUrl
│ │ ├── KeyboardButtonCallback
│ │ ├── KeyboardButtonRequestPhone
│ │ ├── KeyboardButtonSwitchInline
│ │ ├── KeyboardButtonGame
│ │ ├── KeyboardButtonBuy
│ │ ├── KeyboardButtonUrlAuth
│ │ ├── InputKeyboardButtonUrlAuth
│ │ ├── KeyboardButtonRequestPoll
│ │ ├── KeyboardButtonUserProfile
│ │ ├── KeyboardButtonWebView
│ │ ├── KeyboardButtonSimpleWebView
│ │ ├── KeyboardButtonRequestPeer
│ │ └── KeyboardButtonCopy
│ └── placeholder → string (optional)

Example

BotInlineMessageMediaVenue(
    geo=GeoPointEmpty(),
    title="text",
    address="text",
    provider="text",
    venue_id="text",
    venue_type="text",
)