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
- Annotations
-
- @freezed
Constructors
- InlineQueryResultVenue.new({@JsonKey(name: 'type') @Default(InlineQueryResultType.venue) InlineQueryResultType type, @JsonKey(name: 'id') required String id, @JsonKey(name: 'latitude') required double latitude, @JsonKey(name: 'longitude') required double longitude, @JsonKey(name: 'title') required String title, @JsonKey(name: 'address') required String address, @JsonKey(name: 'foursquare_id') String? foursquareId, @JsonKey(name: 'foursquare_type') String? foursquareType, @JsonKey(name: 'google_place_id') String? googlePlaceId, @JsonKey(name: 'google_place_type') String? googlePlaceType, @JsonKey(name: 'reply_markup') InlineKeyboardMarkup? replyMarkup, @JsonKey(name: 'input_message_content') @InputMessageContentConverter() InputMessageContent? inputMessageContent, @JsonKey(name: 'thumbnail_url') String? thumbnailUrl, @JsonKey(name: 'thumbnail_width') int? thumbnailWidth, @JsonKey(name: 'thumbnail_height') int? thumbnailHeight})
-
Constructs an InlineQueryResultVenue object
constfactory
-
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
-
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