SendVenueRequest

data class SendVenueRequest(chat_id: String, latitude: Float, longitude: Float, title: String, address: String, foursquare_id: String?, foursquare_type: String?, google_place_id: String?, google_place_type: String?, disable_notification: Boolean?, reply_to_message_id: Long?, allow_sending_without_reply: Boolean?, reply_markup: KeyboardOption?) : TelegramRequest

Use this method to send information about a venue. On success, the sent Message is returned.

Constructors

SendVenueRequest
Link copied to clipboard
fun SendVenueRequest(chat_id: String, latitude: Float, longitude: Float, title: String, address: String, foursquare_id: String? = null, foursquare_type: String? = null, google_place_id: String? = null, google_place_type: String? = null, disable_notification: Boolean? = null, reply_to_message_id: Long? = null, allow_sending_without_reply: Boolean? = null, reply_markup: KeyboardOption? = null)

Properties

address
Link copied to clipboard
val address: String
Address of the venue
allow_sending_without_reply
Link copied to clipboard
val allow_sending_without_reply: Boolean? = null
Pass True, if the message should be sent even if the specified replied-to message is not found
chat_id
Link copied to clipboard
val chat_id: String
Unique identifier for the target chat or username of the target channel (in the format @channelusername)
disable_notification
Link copied to clipboard
val disable_notification: Boolean? = null
Sends the message
foursquare_id
Link copied to clipboard
val foursquare_id: String? = null
Foursquare identifier of the venue
foursquare_type
Link copied to clipboard
val foursquare_type: String? = null
Foursquare type of the venue, if known.
google_place_id
Link copied to clipboard
val google_place_id: String? = null
Google Places identifier of the venue
google_place_type
Link copied to clipboard
val google_place_type: String? = null
Google Places type of the venue.
latitude
Link copied to clipboard
val latitude: Float
Latitude of the venue
longitude
Link copied to clipboard
val longitude: Float
Longitude of the venue
reply_markup
Link copied to clipboard
val reply_markup: KeyboardOption? = null
Additional interface options.
reply_to_message_id
Link copied to clipboard
val reply_to_message_id: Long? = null
If the message is a reply, ID of the original message
title
Link copied to clipboard
val title: String
Name of the venue