diff --git a/bot/modules/list.py b/bot/modules/list.py index 20e0530..d5390d0 100644 --- a/bot/modules/list.py +++ b/bot/modules/list.py @@ -8,7 +8,7 @@ from bot.helper.telegram_helper.bot_commands import BotCommands @run_async def list_drive(update, context): message = update.message.text - search = message.split(' ')[1] + search = message.replace('/list ','') LOGGER.info(f"Searching: {search}") gdrive = GoogleDriveHelper(None) msg = gdrive.drive_list(search)