MessageMediaVenue

class pyrogram.raw.types.MessageMediaVenue

Venue

Constructor of MessageMedia.

Details:
  • Layer: 223

  • ID: 2EC0533F

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

Functions:

This object can be returned by 2 functions.

messages.UploadMedia

Upload a file and associate it to a chat (without actually sending it to the chat)

messages.UploadImportedMedia

Upload a media file associated with an imported chat, click here for more info ».

TL Schema

messageMediaVenue#2ec0533f
geo:GeoPoint
title:string
address:string
provider:string
venue_id:string
venue_type:string

= MessageMedia

Parameter Tree

MessageMediaVenue
├── geoGeoPoint
│ ├── GeoPointEmpty
│ └── GeoPoint
│ ├── longdouble
│ ├── latdouble
│ ├── access_hashlong
│ └── accuracy_radiusint (optional)
├── titlestring
├── addressstring
├── providerstring
├── venue_idstring
└── venue_typestring

Example

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