Layer 220
constructor
messageMediaVenue#2ec0533f geo:GeoPoint title:string address:string provider:string venue_id:string venue_type:string = MessageMedia;

Parameters

Name Type Description
Geo GeoPoint Geolocation of venue
Title string Venue name
Address string Address
Provider string Venue provider: currently only "foursquare" and "gplaces" (Google Places) need to be supported
VenueId string Venue ID in the provider's database
VenueType string Venue type in the provider's database

Returns

MessageMedia

Gogram Example

// Creating MessageMediaVenue constructor
obj := &tg.MessageMediaVenue{
    Geo: &tg.GeoPoint{},
    Title: "...",
    Address: "...",
    Provider: "...",
    VenueId: "...",
    VenueType: "...",
}