InlineQueryResultVenue class abstract

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
Available extensions
Annotations
  • @freezed

Constructors

InlineQueryResultVenue({@JsonKey.new(name: 'type') @Default.new(InlineQueryResultType.venue) InlineQueryResultType type, @JsonKey.new(name: 'id') required String id, @JsonKey.new(name: 'latitude') required double latitude, @JsonKey.new(name: 'longitude') required double longitude, @JsonKey.new(name: 'title') required String title, @JsonKey.new(name: 'address') required String address, @JsonKey.new(name: 'foursquare_id') String? foursquareId, @JsonKey.new(name: 'foursquare_type') String? foursquareType, @JsonKey.new(name: 'google_place_id') String? googlePlaceId, @JsonKey.new(name: 'google_place_type') String? googlePlaceType, @JsonKey.new(name: 'reply_markup') InlineKeyboardMarkup? replyMarkup, @JsonKey.new(name: 'input_message_content') @InputMessageContentConverter() InputMessageContent? inputMessageContent, @JsonKey.new(name: 'thumbnail_url') String? thumbnailUrl, @JsonKey.new(name: 'thumbnail_width') int? thumbnailWidth, @JsonKey.new(name: 'thumbnail_height') int? thumbnailHeight})
Constructs an InlineQueryResultVenue object
const
factory
InlineQueryResultVenue.fromJson(Map<String, dynamic> json)
Creates an InlineQueryResultVenue object from JSON object
factory

Properties

address → String
Address of the venue
no setterinherited
copyWith → $InlineQueryResultVenueCopyWith<InlineQueryResultVenue>
Create a copy of InlineQueryResultVenue with the given fields replaced by the non-null parameter values.
no setterinherited
foursquareId → String?
Optional. Foursquare identifier of the venue if known
no setterinherited
foursquareType → String?
Optional. Foursquare type of the venue, if known.
no setterinherited
googlePlaceId → String?
Optional. Google Places identifier of the venue
no setterinherited
googlePlaceType → String?
Optional. Google Places type of the venue. (See supported types.)
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
id → String
Unique identifier for this result, 1-64 Bytes
no setterinherited
inputMessageContent → InputMessageContent?
Optional. Content of the message to be sent instead of the venue
no setterinherited
latitude → double
Latitude of the venue location in degrees
no setterinherited
longitude → double
Longitude of the venue location in degrees
no setterinherited
replyMarkup → InlineKeyboardMarkup?
Optional. Inline keyboard attached to the message
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
thumbnailHeight → int?
Optional. Thumbnail height
no setterinherited
thumbnailUrl → String?
Optional. URL of the thumbnail for the result
no setterinherited
thumbnailWidth → int?
Optional. Thumbnail width
no setterinherited
title → String
Title of the venue
no setterinherited
type → InlineQueryResultType
Type of the result, always InlineQueryResultType.venue
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_InlineQueryResultVenue value)) → TResult

Available on InlineQueryResultVenue, provided by the InlineQueryResultVenuePatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_InlineQueryResultVenue value)?) → TResult?

Available on InlineQueryResultVenue, provided by the InlineQueryResultVenuePatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_InlineQueryResultVenue value)?, {required TResult orElse()}) → TResult

Available on InlineQueryResultVenue, provided by the InlineQueryResultVenuePatterns extension

A variant of map that fallback to returning orElse.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serializes this InlineQueryResultVenue to a JSON map.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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