@@ -290,6 +290,36 @@ about its business.
290290
291291 Now the method returns the sent message
292292
293+ .. py :method :: send_venue(latitude, longitude, title, address, [foursquare=None , reply_to=None , extra=None , notify=True ])
294+
295+ Send a venue to the user. A venue is made of its geographic coordinates
296+ (latitude and longitude), its title and address, and optionally the
297+ venue's Foursquare ID, if you want to integrate with that. Users will
298+ then see the venue in the map, along with the information you provided.
299+
300+ You can use this, for example, if you want to recommend to your bot's
301+ users a place to go to dinner tonight:
302+
303+ .. code-block :: python
304+
305+ @bot.command (" whereshouldigo" )
306+ def whereshouldigo_command (chat , message , args ):
307+ message.sender.send(" Here there is an unique place to go to dinner tonight!" )
308+ message.sender.send_venue(35 , - 45 , " The Abyss" , " Atlantic Ocean" )
309+
310+ :param float latitude: The latitude of the venue
311+ :param float longitude: The longitude of the venue
312+ :param str title: The name of the venue
313+ :param str address: The address of the venue
314+ :param str foursquare: The Foursquare ID of the venue
315+ :param int reply_to: The ID of the :py:class: `~botogram.Message ` this one is replying to
316+ :param object extra: An extra reply interface object to attach
317+ :param bool notify: If you want to trigger a notification on the client
318+ :returns: The message you sent
319+ :rtype: ~botogram.Message
320+
321+ .. versionadded :: 0.3
322+
293323 .. py :method :: send_sticker(sticker, [reply_to=None , extra=None , notify=True ])
294324
295325 Send the sticker to the user (in webp format). If the sticker you're
@@ -791,6 +821,36 @@ about its business.
791821
792822 Now the method returns the sent message
793823
824+ .. py :method :: send_venue(latitude, longitude, title, address, [foursquare=None , reply_to=None , extra=None , notify=True ])
825+
826+ Send a venue to the chat. A venue is made of its geographic coordinates
827+ (latitude and longitude), its title and address, and optionally the
828+ venue's Foursquare ID, if you want to integrate with that. Users will
829+ then see the venue in the map, along with the information you provided.
830+
831+ You can use this, for example, if you want to recommend to your bot's
832+ users a place to go to dinner tonight:
833+
834+ .. code-block :: python
835+
836+ @bot.command (" whereshouldigo" )
837+ def whereshouldigo_command (chat , message , args ):
838+ chat.send(" Here there is an unique place to go to dinner tonight!" )
839+ chat.send_venue(35 , - 45 , " The Abyss" , " Atlantic Ocean" )
840+
841+ :param float latitude: The latitude of the venue
842+ :param float longitude: The longitude of the venue
843+ :param str title: The name of the venue
844+ :param str address: The address of the venue
845+ :param str foursquare: The Foursquare ID of the venue
846+ :param int reply_to: The ID of the :py:class: `~botogram.Message ` this one is replying to
847+ :param object extra: An extra reply interface object to attach
848+ :param bool notify: If you want to trigger a notification on the client
849+ :returns: The message you sent
850+ :rtype: ~botogram.Message
851+
852+ .. versionadded :: 0.3
853+
794854 .. py :method :: send_sticker(sticker, [reply_to=None , extra=None , notify=True ])
795855
796856 Send the sticker to the chat (in webp format). If the sticker you're
@@ -1428,6 +1488,36 @@ about its business.
14281488
14291489 Now the method returns the sent message
14301490
1491+ .. py :method :: reply_with_venue(latitude, longitude, title, address, [foursquare=None , extra=None , notify=True ])
1492+
1493+ Reply to this message with a venue. A venue is made of its geographic
1494+ coordinates (latitude and longitude), its title and address, and
1495+ optionally the venue's Foursquare ID, if you want to integrate with that.
1496+ Users will then see the venue in the map, along with the information you
1497+ provided.
1498+
1499+ You can use this, for example, if you want to recommend to your bot's
1500+ users a place to go to dinner tonight:
1501+
1502+ .. code-block :: python
1503+
1504+ @bot.command (" whereshouldigo" )
1505+ def whereshouldigo_command (chat , message , args ):
1506+ message.reply(" Here there is an unique place to go to dinner tonight!" )
1507+ message.reply_with_venue(35 , - 45 , " The Abyss" , " Atlantic Ocean" )
1508+
1509+ :param float latitude: The latitude of the venue
1510+ :param float longitude: The longitude of the venue
1511+ :param str title: The name of the venue
1512+ :param str address: The address of the venue
1513+ :param str foursquare: The Foursquare ID of the venue
1514+ :param object extra: An extra reply interface object to attach
1515+ :param bool notify: If you want to trigger a notification on the client
1516+ :returns: The message you sent
1517+ :rtype: ~botogram.Message
1518+
1519+ .. versionadded :: 0.3
1520+
14311521 .. py :method :: reply_with_sticker(sticker, [reply_to=None , extra=None , notify=True ])
14321522
14331523 Reply with the sticker (in webp format) to the chat. *extra * is an
0 commit comments