sendLocation method

Future<Message> sendLocation(
  1. ChatID chatId,
  2. double latitude,
  3. double longitude, {
  4. double? horizontalAccuracy,
  5. int? livePeriod,
  6. int? heading,
  7. int? proximityAlertRadius,
  8. bool? disableNotification,
  9. bool? protectContent,
  10. int? replyToMessageId,
  11. bool? allowSendingWithoutReply,
  12. ReplyMarkup? replyMarkup,
})
inherited

Use this method to send point on the map.

On success, the sent Message is returned.

Implementation

Future<Message> sendLocation(
  ChatID chatId,
  double latitude,
  double longitude, {
  double? horizontalAccuracy,
  int? livePeriod,
  int? heading,
  int? proximityAlertRadius,
  bool? disableNotification,
  bool? protectContent,
  int? replyToMessageId,
  bool? allowSendingWithoutReply,
  ReplyMarkup? replyMarkup,
}) {
  return _client.apiCall(_token, 'sendLocation', {
    'chat_id': chatId,
    'latitude': latitude,
    'longitude': longitude,
    'horizontal_accuracy': horizontalAccuracy,
    'live_period': livePeriod,
    'heading': heading,
    'proximity_alert_radius': proximityAlertRadius,
    'disable_notification': disableNotification,
    'protect_content': protectContent,
    'reply_to_message_id': replyToMessageId,
    'allow_sending_without_reply': allowSendingWithoutReply,
    'reply_markup': replyMarkup,
  });
}