Skip to content
Snippets Groups Projects
Commit 0b196070 authored by fmk17's avatar fmk17
Browse files

Fix not accepting @

parent 99bc36df
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,9 @@ LOCATION_TO_HEADER = {
def cardapio(update: Update, context: CallbackContext) -> None:
command = next(iter(update.message.parse_entities(types=["bot_command"]).values()))[1:]
if '@' in command:
command = command[:command.index('@')]
location = COMMAND_TO_LOCATION[command]
days, update_time = get_menus_by_days(location)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment