InlineQueryResultLocation class

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

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

Older clients will ignore them.

https://core.telegram.org/bots/api#inlinequeryresultlocation

Implemented types
Annotations
  • @JsonSerializable.new(includeIfNull: false)

Constructors

InlineQueryResultLocation({String? type = 'location', String? id, double? latitude, double? longitude, String? title, Duration? live_period, InlineKeyboardMarkup? replyMarkup, InputMessageContent? inputMessageContent, String? thumb_url, int? thumb_width, int? thumb_height})
InlineQueryResultLocation.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
id ↔ String?
Unique identifier for this result, 1-64 bytes.
getter/setter pairoverride
inputMessageContent ↔ InputMessageContent?
Optional. Content of the message to be sent instead of the location.
getter/setter pair
latitude ↔ double?
Location latitude in degrees.
getter/setter pair
live_period ↔ Duration?
Optional. Period in seconds for which the location can be updated, should be between 60 and 86400.
getter/setter pair
longitude ↔ double?
Location longitude in degrees.
getter/setter pair
replyMarkup ↔ InlineKeyboardMarkup?
Optional. Inline keyboard attached to the message.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
thumb_height ↔ int?
Optional. Thumbnail height.
getter/setter pair
thumb_url ↔ String?
Optional. Url of the thumbnail for the result.
getter/setter pair
thumb_width ↔ int?
Optional. Thumbnail width.
getter/setter pair
title ↔ String?
Location title.
getter/setter pair
type ↔ String?
Type of the result, must be location.
getter/setter pairoverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
override
toString() → String
A string representation of this object.
inherited

Operators

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