replyVenue method

Future<Message> replyVenue(
  1. double latitude,
  2. double longitude,
  3. String title,
  4. String address, {
  5. bool withQuote = false,
  6. String? foursquareId,
  7. String? foursquareType,
  8. String? googlePlaceId,
  9. String? googlePlaceType,
  10. bool? disableNotification,
  11. bool? allowSendingWithoutReply,
  12. ReplyMarkup? replyMarkup,
})

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);