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

Filter F.document works only if message contains any command on Debian 12 #1430

Open
2 tasks done
unabomber78 opened this issue Feb 29, 2024 · 3 comments
Open
2 tasks done
Labels
bug Something is wrong with the framework

Comments

@unabomber78
Copy link

Checklist

  • I am sure the error is coming from aiogram code
  • I have searched in the issue tracker for similar bug reports, including closed ones

Operating system

Debian 12

Python version

3.11.2

aiogram version

3.4.1

Expected behavior

On Debian 12 filter F.document should be handled with any message contained document.

Current behavior

On Debian 12 filter F.document is handled only if message contains any command, but on windows 10 it works like expected and message contained only document is handled correctly.

Steps to reproduce

run simple aiogram3 code with one test function on Debian 12
@dp.message(F.document)
async def test(message: Message):
await message.answer("Document received!")

Code example

@dp.message(F.document)
async def test(message: Message):
    await message.answer("Document received!")

Logs

No response

Additional information

I am NOT sure the error is coming from aiogram code, but without set this stupid checkbox i cannot submit issue

@unabomber78 unabomber78 added the bug Something is wrong with the framework label Feb 29, 2024
@JrooTJunior
Copy link
Member

Need more information, this case doesn't seems like real.

@unabomber78
Copy link
Author

What additional information do you need? I pointed out that the simplest 3 line function works on windows 10 and does not work on Debian 12. I may well assume that the problem is not with aiogram but with Debian, but this is just regular Debian installed on a VDS. If no one can reproduce this error in the same environment as me, I'm willing to accept that the problem is on my side.

@JrooTJunior
Copy link
Member

Minimum reproducible example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is wrong with the framework
Projects
None yet
Development

No branches or pull requests

2 participants