replyWithVenue method

Future<Message> replyWithVenue(
  1. double latitude,
  2. double longitude,
  3. String title,
  4. String address, {
  5. int? messageThreadId,
  6. String? foursquareId,
  7. String? foursquareType,
  8. String? googlePlaceId,
  9. String? googlePlaceType,
  10. bool? disableNotification,
  11. bool? protectContent,
  12. ReplyMarkup? replyMarkup,
  13. ReplyParameters? replyParameters,
  14. String? businessConnectionId,
  15. String? messageEffectId,
  16. bool? allowPaidBroadcast,
  17. int? directMessagesTopicId,
  18. SuggestedPostParameters? suggestedPostParameters,
})

Sends venue information to the current chat.

Example:

await ctx.replyWithVenue(
  37.7749, -122.4194,
  'Golden Gate Park',
  '501 Stanyan St, San Francisco, CA',
);

Implementation

Future<Message> replyWithVenue(
  double latitude,
  double longitude,
  String title,
  String address, {
  int? messageThreadId,
  String? foursquareId,
  String? foursquareType,
  String? googlePlaceId,
  String? googlePlaceType,
  bool? disableNotification,
  bool? protectContent,
  ReplyMarkup? replyMarkup,
  ReplyParameters? replyParameters,
  String? businessConnectionId,
  String? messageEffectId,
  bool? allowPaidBroadcast,
  int? directMessagesTopicId,
  SuggestedPostParameters? suggestedPostParameters,
}) async {
  final chatId = _getChatId();
  _verifyInfo([chatId], APIMethod.sendVenue);

  return api.sendVenue(
    chatId!,
    latitude,
    longitude,
    title,
    address,
    messageThreadId: _threadId(messageThreadId),
    foursquareId: foursquareId,
    foursquareType: foursquareType,
    googlePlaceId: googlePlaceId,
    googlePlaceType: googlePlaceType,
    disableNotification: disableNotification,
    protectContent: protectContent,
    replyMarkup: replyMarkup,
    replyParameters: replyParameters,
    businessConnectionId: _businessConnectionId(businessConnectionId),
    messageEffectId: messageEffectId,
    allowPaidBroadcast: allowPaidBroadcast,
    directMessagesTopicId: directMessagesTopicId,
    suggestedPostParameters: suggestedPostParameters,
  );
}