parent
cd0870d0b3
commit
b77b361d2a
|
@ -55,7 +55,7 @@ class MatrixModule(BotModule):
|
||||||
location = geolocator.geocode(query)
|
location = geolocator.geocode(query)
|
||||||
self.logger.info('loc rx %s', location)
|
self.logger.info('loc rx %s', location)
|
||||||
if location:
|
if location:
|
||||||
await bot.send_location(room.room_id, location.address, location.latitude, location.longitude)
|
await bot.send_location(room, location.address, location.latitude, location.longitude)
|
||||||
else:
|
else:
|
||||||
await bot.send_text(room, "Can't find " + query + " on map!")
|
await bot.send_text(room, "Can't find " + query + " on map!")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue