sendVenue method

Future<Message> sendVenue(
  1. ChatID chatId,
  2. double latitude,
  3. double longitude,
  4. String title,
  5. String address, {
  6. String? foursquareId,
  7. String? foursquareType,
  8. String? googlePlaceId,
  9. String? googlePlaceType,
  10. bool? disableNotification,
  11. bool? protectContent,
  12. int? replyToMessageId,
  13. bool? allowSendingWithoutReply,
  14. ReplyMarkup? replyMarkup,
})
inherited

Use this method to send information about a venue.

On success, the sent Message is returned.

Implementation

Future<Message> sendVenue(
  ChatID chatId,
  double latitude,
  double longitude,
  String title,
  String address, {
  String? foursquareId,
  String? foursquareType,
  String? googlePlaceId,
  String? googlePlaceType,
  bool? disableNotification,
  bool? protectContent,
  int? replyToMessageId,
  bool? allowSendingWithoutReply,
  ReplyMarkup? replyMarkup,
}) {
  return _client.apiCall(_token, 'sendVenue', {
    'chat_id': chatId,
    'latitude': latitude,
    'longitude': longitude,
    'title': title,
    'address': address,
    'foursquare_id': foursquareId,
    'foursquare_type': foursquareType,
    'google_place_id': googlePlaceId,
    'google_place_type': googlePlaceType,
    'disable_notification': disableNotification,
    'protect_content': protectContent,
    'reply_to_message_id': replyToMessageId,
    'allow_sending_without_reply': allowSendingWithoutReply,
    'reply_markup': replyMarkup,
  });
}