BotInlineMessageMediaGeo

class pyrogram.raw.types.BotInlineMessageMediaGeo

Send a geolocation

Constructor of BotInlineMessage.

Details:
  • Layer: 227

  • ID: 51846FD

Parameters:
  • geo (GeoPoint) – Geolocation

  • heading (int 32-bit, optional) – For live locations, a direction in which the location moves, in degrees; 1-360.

  • period (int 32-bit, optional) – Validity period

  • proximity_notification_radius (int 32-bit, optional) – For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000).

  • reply_markup (ReplyMarkup, optional) – Inline keyboard

TL Schema

botInlineMessageMediaGeo#51846fd
flags:#
geo:GeoPoint
heading:flags.0?int
period:flags.1?int
proximity_notification_radius:flags.3?int
reply_markup:flags.2?ReplyMarkup

= BotInlineMessage

Parameter Tree

BotInlineMessageMediaGeo
├── geo → GeoPoint
│ ├── GeoPointEmpty
│ └── GeoPoint
│ ├── long → double
│ ├── lat → double
│ ├── access_hash → long
│ └── accuracy_radius → int (optional)
├── heading → int (optional)
├── period → int (optional)
├── proximity_notification_radius → int (optional)
└── 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

BotInlineMessageMediaGeo(
    geo=GeoPointEmpty(),
)