sendLocation method
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,
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,
});
}