Implemented ignoring of events sent before the room was joined

- Fixed room bot so that it only sends help message when the message has text in it
- Incremeneted database SCHEMA_VERSION, now it's 2
This commit is contained in:
2026-11-21 22:20:36 +03:00
parent eab2e8acb8
commit cbbafb7778
3 changed files with 84 additions and 2 deletions

View File

@@ -226,7 +226,7 @@ async def main() -> None:
)
#
bot.add_callback(
~SenderIsBotFilter() & NewMessageFilter(),
~SenderIsBotFilter() & NewMessageFilter() & BodyExistsFilter(),
on_help_message
)