Fixed bug in location setting function

This commit is contained in:
Davte 2020-12-16 10:05:19 +01:00
parent 3cf0c06ba2
commit ed0bfd1526
Signed by: Davte
GPG Key ID: 209AE674A0007425
2 changed files with 4 additions and 3 deletions

View File

@ -3,7 +3,7 @@
__author__ = "Davide Testa"
__email__ = "davide@davte.it"
__license__ = "GNU General Public License v3.0"
__version__ = "1.2.4"
__version__ = "1.2.5"
__maintainer__ = "Davide Testa"
__contact__ = "t.me/davte"

View File

@ -1479,7 +1479,7 @@ async def _ciclopi_button_favourites(bot, update, user_record, arguments):
return result, text, reply_markup
async def _ciclopi_button_setpos(bot, update, user_record):
async def _ciclopi_button_setpos(bot, update, user_record, language):
result, text, reply_markup = '', '', None
chat_id = (
update['message']['chat']['id'] if 'message' in update
@ -1492,7 +1492,8 @@ async def _ciclopi_button_setpos(bot, update, user_record):
)
bot.set_individual_location_handler(
await async_wrapper(
set_ciclopi_location
set_ciclopi_location,
language=language
),
update
)