sendLocation method

Future<Message> sendLocation(
  1. ChatID chatId,
  2. double latitude,
  3. double longitude, {
  4. int? livePeriod,
  5. bool? disableNotification,
  6. int? replyToMessageId,
  7. bool? allowSendingWithoutReply,
  8. 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, {
  int? livePeriod,
  bool? disableNotification,
  int? replyToMessageId,
  bool? allowSendingWithoutReply,
  ReplyMarkup? replyMarkup,
}) {
  return _client.apiCall(_token, 'sendLocation', {
    'chat_id': chatId,
    'latitude': latitude,
    'longitude': longitude,
    'live_period': livePeriod,
    'disable_notification': disableNotification,
    'reply_to_message_id': replyToMessageId,
    'allow_sending_without_reply': allowSendingWithoutReply,
    'reply_markup': replyMarkup
  });
}