!loc: send_location takes room object, not room_id

Fixes #148
This commit is contained in:
gammafn 2021-05-03 08:50:18 -05:00
parent cd0870d0b3
commit b77b361d2a
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ class MatrixModule(BotModule):
location = geolocator.geocode(query)
self.logger.info('loc rx %s', 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:
await bot.send_text(room, "Can't find " + query + " on map!")