SendVenueRequest

data class SendVenueRequest(chatId: Int, latitude: Float, longitude: Float, title: String, address: String, foursquareId: String?, foursquareType: String?, googlePlaceId: String?, googlePlaceType: String?, disableNotification: Boolean, replyToMessageId: Int?, allowSendingWithoutReply: Boolean, replyMarkup: ReplyMarkup?)

Request body for sendVenue

Parameters

chatId

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

latitude

Latitude of the venue

longitude

Longitude of the venue

title

Name of the venue

address

Address of the venue

foursquareId

Foursquare identifier of the venue

foursquareType

Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)

googlePlaceId

Google Places identifier of the venue

googlePlaceType

Google Places type of the venue. (See supported types.)

disableNotification

Sends the message silently. Users will receive a notification with no sound.

replyToMessageId

If the message is a reply, ID of the original message

allowSendingWithoutReply

Pass True, if the message should be sent even if the specified replied-to message is not found

replyMarkup

Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.

Constructors

SendVenueRequest
Link copied to clipboard
common
fun SendVenueRequest(chatId: Int, latitude: Float, longitude: Float, title: String, address: String, foursquareId: String? = null, foursquareType: String? = null, googlePlaceId: String? = null, googlePlaceType: String? = null, disableNotification: Boolean = false, replyToMessageId: Int? = null, allowSendingWithoutReply: Boolean = false, replyMarkup: ReplyMarkup? = null)
Unique identifier for the target chat or username of the target channel (in the format @channelusername)

Functions

component1
Link copied to clipboard
common
operator fun component1(): Int
component10
Link copied to clipboard
common
operator fun component10(): Boolean
component11
Link copied to clipboard
common
operator fun component11(): Int?
component12
Link copied to clipboard
common
operator fun component12(): Boolean
component13
Link copied to clipboard
common
operator fun component13(): ReplyMarkup?
component2
Link copied to clipboard
common
operator fun component2(): Float
component3
Link copied to clipboard
common
operator fun component3(): Float
component4
Link copied to clipboard
common
operator fun component4(): String
component5
Link copied to clipboard
common
operator fun component5(): String
component6
Link copied to clipboard
common
operator fun component6(): String?
component7
Link copied to clipboard
common
operator fun component7(): String?
component8
Link copied to clipboard
common
operator fun component8(): String?
component9
Link copied to clipboard
common
operator fun component9(): String?
copy
Link copied to clipboard
common
fun copy(chatId: Int, latitude: Float, longitude: Float, title: String, address: String, foursquareId: String? = null, foursquareType: String? = null, googlePlaceId: String? = null, googlePlaceType: String? = null, disableNotification: Boolean = false, replyToMessageId: Int? = null, allowSendingWithoutReply: Boolean = false, replyMarkup: ReplyMarkup? = null): SendVenueRequest
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

address
Link copied to clipboard
common
val address: String
Address of the venue
allowSendingWithoutReply
Link copied to clipboard
common
val allowSendingWithoutReply: Boolean = false
Pass True, if the message should be sent even if the specified replied-to message is not found
chatId
Link copied to clipboard
common
val chatId: Int
Unique identifier for the target chat or username of the target channel (in the format @channelusername)
disableNotification
Link copied to clipboard
common
val disableNotification: Boolean = false
Sends the message silently.
foursquareId
Link copied to clipboard
common
val foursquareId: String? = null
Foursquare identifier of the venue
foursquareType
Link copied to clipboard
common
val foursquareType: String? = null
Foursquare type of the venue, if known.
googlePlaceId
Link copied to clipboard
common
val googlePlaceId: String? = null
Google Places identifier of the venue
googlePlaceType
Link copied to clipboard
common
val googlePlaceType: String? = null
Google Places type of the venue.
latitude
Link copied to clipboard
common
val latitude: Float
Latitude of the venue
longitude
Link copied to clipboard
common
val longitude: Float
Longitude of the venue
replyMarkup
Link copied to clipboard
common
val replyMarkup: ReplyMarkup? = null
Additional interface options.
replyToMessageId
Link copied to clipboard
common
val replyToMessageId: Int? = null
If the message is a reply, ID of the original message
title
Link copied to clipboard
common
val title: String
Name of the venue