replyVenue method
Reply to the recieved message with a venue message
A wrapper around TeleDart.sendVenue. On success, returns the sent Message.
Apart from a latitude
and a longitude
a title
and an address
,
it can also take some options that control the message
appearance and behavior.
Check Telegram API documentation for more information about those options.
Implementation
Future<Message> replyVenue(
double latitude,
double longitude,
String title,
String address, {
bool withQuote = false,
String? foursquareId,
String? foursquareType,
String? googlePlaceId,
String? googlePlaceType,
bool? disableNotification,
bool? allowSendingWithoutReply,
ReplyMarkup? replyMarkup,
}) =>
_teledart.sendVenue(chat.id, latitude, longitude, title, address,
messageThreadId: messageThreadId,
foursquareId: foursquareId,
foursquareType: foursquareType,
googlePlaceId: googlePlaceId,
googlePlaceType: googlePlaceType,
disableNotification: disableNotification,
replyToMessageId: withQuote ? messageId : null,
allowSendingWithoutReply: allowSendingWithoutReply,
replyMarkup: replyMarkup);