Skip to content

Filter Command ignores parameter ignore_case #1106

Closed
@sheldygg

Description

@sheldygg

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

Windows 10

Python version

3.10.9

aiogram version

3.0.0b6

Expected behavior

The bot must respond to the command /TEST

Current behavior

The bot does not respond to the command /TEST

Steps to reproduce

  1. Copy code
  2. Install aiogram==3.0.0b6
  3. Insert bot token
  4. Run file

Code example

import logging

from aiogram import Bot, Dispatcher
from aiogram.filters import Command
from aiogram.types import Message

TOKEN = ""
dp = Dispatcher()

logging.basicConfig(level=logging.DEBUG)

@dp.message(Command(commands=["test"], ignore_case=True))
async def command_start_handler(message: Message) -> None:
    await message.reply("True")
    
def main() -> None:
    # Initialize Bot instance with an default parse mode which will be passed to all API calls
    bot = Bot(TOKEN, parse_mode="HTML")
    # And the run events dispatching
    dp.run_polling(bot)


if __name__ == "__main__":
    main()

Logs

INFO:aiogram.event:Update id=****** is not handled. Duration 0 ms by bot id=*******

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is wrong with the frameworkconfirmedThis issue is confirmed and requires action

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions