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