fix: support AI commands in media captions

This commit is contained in:
Azimkin
2026-09-14 14:35:48 +02:00
parent 40e7930e60
commit c6b93c9aa8
6 changed files with 62 additions and 10 deletions

View File

@@ -18,4 +18,4 @@ def register_common_handlers(client: "Client", manager: "AccountManager", accoun
async def command_handler(client_: "Client", message) -> None:
await dispatcher.dispatch(client_, message, manager, account)
client.add_handler(MessageHandler(command_handler, filters.text))
client.add_handler(MessageHandler(command_handler, filters.text | filters.caption))