Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix get_full_command for messages with caption #576

Merged
merged 2 commits into from May 11, 2021

Conversation

dashedman
Copy link

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
@dispatcher.message_handler(commands=["command"], commands_ignore_caption=False, content_types=types.ContentType.ANY)
async def message_handler(message: types.Message):
    print( message.get_full_command() )    

Test Configuration:

  • Operating System: Windows 10
  • Python version: 3.8

aiogram/types/message.py Show resolved Hide resolved
aiogram/types/message.py Outdated Show resolved Hide resolved
@evgfilim1 evgfilim1 added the enhancement Make it better! label May 5, 2021
@JrooTJunior JrooTJunior merged commit 405add3 into aiogram:dev-2.x May 11, 2021
@evgfilim1 evgfilim1 added this to the 2.14 milestone Jul 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Make it better!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants