sendLocation method
Future<Message>
sendLocation(
- ChatID chatId,
- double latitude,
- double longitude, {
- int? livePeriod,
- bool? disableNotification,
- int? replyToMessageId,
- bool? allowSendingWithoutReply,
- 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
});
}