InlineQueryResultVenue class

Represents a venue. By default, the venue will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the venue.

Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.

Implemented types

Constructors

InlineQueryResultVenue({required double latitude, required double longitude, required String title, required String address, required String id, String? foursquareId, String? foursquareType, String? googlePlaceId, String? googlePlaceType, InlineKeyboardMarkup? replyMarkup, InputMessageContent? inputMessageContent, String? thumbnailUrl, int? thumbnailWidth, int? thumbnailHeight})
Constructs an InlineQueryResultVenue object
const
InlineQueryResultVenue.fromJson(Map<String, dynamic> json)
Constructs an InlineQueryResultVenue object from a JSON map
factory

Properties

address String
Address of the venue
final
foursquareId String?
Optional. Foursquare identifier of the venue if known
final
foursquareType String?
Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)
final
googlePlaceId String?
Optional. Google Places identifier of the venue
final
googlePlaceType String?
Optional. Google Places type of the venue. (See supported types.)
final
hashCode int
The hash code for this object.
no setterinherited
id String
Unique identifier for this result, 1-64 Bytes
final
inputMessageContent InputMessageContent?
Optional. Content of the message to be sent instead of the venue
final
latitude double
Latitude of the venue location in degrees
final
longitude double
Longitude of the venue location in degrees
final
replyMarkup InlineKeyboardMarkup?
Optional. Inline keyboard attached to the message
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
thumbnailHeight int?
Optional. Thumbnail height
final
thumbnailUrl String?
Optional. Url of the thumbnail for the result
final
thumbnailWidth int?
Optional. Thumbnail width
final
title String
Title of the venue
final
type InlineQueryResultType
Type of the result, always InlineQueryResultType.venue
no setteroverride

Methods

copyWith({String? id, double? latitude, double? longitude, String? title, String? address, String? foursquareId, String? foursquareType, String? googlePlaceId, String? googlePlaceType, InlineKeyboardMarkup? replyMarkup, InputMessageContent? inputMessageContent, String? thumbnailUrl, int? thumbnailWidth, int? thumbnailHeight}) InlineQueryResultVenue
Copy method
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts an InlineQueryResultVenue object to a JSON map
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited