diff --git a/base_api.py b/base_api.py index 3dbf2bb0..01831f46 100644 --- a/base_api.py +++ b/base_api.py @@ -759,7 +759,7 @@ def build_group_vote_markup( markup_rows.append([ cls.spawn_inline_keyboard_button( text='Vote via Direct Chat', - command=CallbackCommands.REGISTER_OR_SUBMIT, + command=CallbackCommands.VOTE_VIA_DM, callback_data=dict(poll_id=poll_id) ) ]) diff --git a/handlers/inline_keyboard_handlers.py b/handlers/inline_keyboard_handlers.py index e520f5b4..c3e06b1b 100644 --- a/handlers/inline_keyboard_handlers.py +++ b/handlers/inline_keyboard_handlers.py @@ -697,6 +697,7 @@ async def handle_queries( poll_locks_manager=_poll_locks_manager )) else: + # TODO: this shouldn't happen return await query.answer(BaseAPI.reg_status_to_msg( register_status, poll_id )) @@ -737,8 +738,10 @@ async def send_dm(text, markup: Optional[ReplyMarkup] = None): resp = f"{resp_header} - start the bot to cast your vote" return await query.answer(resp) - coroutine = query.answer(resp_header) + resp = f"{resp_header} - poll info has been sent via DM" + coroutine = query.answer(resp) coroutines.append(coroutine) + poll_message = BaseAPI.generate_poll_message( poll_info=poll_info, bot_username=bot_username, add_instructions=False diff --git a/helpers/strings.py b/helpers/strings.py index 6295154b..49218576 100644 --- a/helpers/strings.py +++ b/helpers/strings.py @@ -3,7 +3,7 @@ from helpers.commands import Command -__VERSION__ = '1.3.4' +__VERSION__ = '1.3.5' READ_SUBSCRIPTION_TIER_FAILED = "Unexpected error reading subscription tier" POLL_OPTIONS_LIMIT_REACHED_TEXT = textwrap.dedent(f"""