Layer 228
InputMediaVenue
Can be used to send a venue geolocation.
constructor
inputMediaVenue#c13d1c11 geo_point:InputGeoPoint title:string address:string provider:string venue_id:string venue_type:string = InputMedia;
Parameters
| Name | Type | Description |
|---|---|---|
| GeoPoint | InputGeoPoint | Geolocation |
| Title | string | Venue name |
| Address | string | Physical address of the venue |
| 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
InputMediaGogram Example
// Creating InputMediaVenue constructor obj := &tg.InputMediaVenue{ GeoPoint: &tg.InputGeoPointObj{Lat: 40.7128, Long: -74.0060}, Title: "Example", Address: "1 Main St", Provider: "stripe", VenueId: "example", VenueType: "food/restaurant", }