InlineQueryResultVenue constructor

const InlineQueryResultVenue({
  1. @JsonKey(name: 'type') @Default(InlineQueryResultType.venue) InlineQueryResultType type,
  2. @JsonKey(name: 'id') required String id,
  3. @JsonKey(name: 'latitude') required double latitude,
  4. @JsonKey(name: 'longitude') required double longitude,
  5. @JsonKey(name: 'title') required String title,
  6. @JsonKey(name: 'address') required String address,
  7. @JsonKey(name: 'foursquare_id') String? foursquareId,
  8. @JsonKey(name: 'foursquare_type') String? foursquareType,
  9. @JsonKey(name: 'google_place_id') String? googlePlaceId,
  10. @JsonKey(name: 'google_place_type') String? googlePlaceType,
  11. @JsonKey(name: 'reply_markup') InlineKeyboardMarkup? replyMarkup,
  12. @JsonKey(name: 'input_message_content') @InputMessageContentConverter() InputMessageContent? inputMessageContent,
  13. @JsonKey(name: 'thumbnail_url') String? thumbnailUrl,
  14. @JsonKey(name: 'thumbnail_width') int? thumbnailWidth,
  15. @JsonKey(name: 'thumbnail_height') int? thumbnailHeight,
})

Constructs an InlineQueryResultVenue object

Implementation

const factory InlineQueryResultVenue({
  /// Type of the result, always [InlineQueryResultType.venue]
  @JsonKey(name: 'type')
  @Default(InlineQueryResultType.venue)
  InlineQueryResultType type,

  /// Unique identifier for this result, 1-64 Bytes
  @JsonKey(name: 'id') required String id,

  /// Latitude of the venue location in degrees
  @JsonKey(name: 'latitude') required double latitude,

  /// Longitude of the venue location in degrees
  @JsonKey(name: 'longitude') required double longitude,

  /// Title of the venue
  @JsonKey(name: 'title') required String title,

  /// Address of the venue
  @JsonKey(name: 'address') required String address,

  /// Optional. Foursquare identifier of the venue if known
  @JsonKey(name: 'foursquare_id') String? foursquareId,

  /// Optional. Foursquare type of the venue, if known.
  ///
  /// (For example, "arts_entertainment/default", "arts_entertainment/aquarium" or "food/icecream".)
  @JsonKey(name: 'foursquare_type') String? foursquareType,

  /// Optional. Google Places identifier of the venue
  @JsonKey(name: 'google_place_id') String? googlePlaceId,

  /// Optional. Google Places type of the venue. (See supported types.)
  @JsonKey(name: 'google_place_type') String? googlePlaceType,

  /// Optional. Inline keyboard attached to the message
  @JsonKey(name: 'reply_markup') InlineKeyboardMarkup? replyMarkup,

  /// Optional. Content of the message to be sent instead of the venue
  @JsonKey(name: 'input_message_content')
  @InputMessageContentConverter()
  InputMessageContent? inputMessageContent,

  /// Optional. URL of the thumbnail for the result
  @JsonKey(name: 'thumbnail_url') String? thumbnailUrl,

  /// Optional. Thumbnail width
  @JsonKey(name: 'thumbnail_width') int? thumbnailWidth,

  /// Optional. Thumbnail height
  @JsonKey(name: 'thumbnail_height') int? thumbnailHeight,
}) = _InlineQueryResultVenue;