Skip to content

Commit

Permalink
Fix bible command (add is_text_arg flag).
Browse files Browse the repository at this point in the history
  • Loading branch information
KMoszczyc committed Feb 4, 2025
1 parent 128cdb2 commit 39844a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/misc_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ async def cmd_help(self, update: Update, context: ContextTypes.DEFAULT_TYPE):
await context.bot.send_message(chat_id=update.effective_chat.id, text=text, parse_mode=telegram.constants.ParseMode.MARKDOWN_V2)

async def cmd_bible(self, update: Update, context: ContextTypes.DEFAULT_TYPE, bot_state: BotState):
command_args = CommandArgs(args=context.args,
command_args = CommandArgs(args=context.args, is_text_arg=True,
available_named_args={'prev': ArgType.POSITIVE_INT, 'next': ArgType.POSITIVE_INT, 'all': ArgType.NONE, 'num': ArgType.POSITIVE_INT, 'count': ArgType.NONE,
'book': ArgType.STRING, 'chapter': ArgType.POSITIVE_INT},
available_named_args_aliases={'p': 'prev', 'n': 'next', 'a': 'all', 'c': 'count', 'b': 'book', 'ch': 'chapter'})
Expand Down

0 comments on commit 39844a7

Please sign in to comment.