diff --git a/src/actions/speller.py b/src/actions/speller.py index c3b9ef4ee07109eb135c04988939a6feb9d33d7a..856daa8c8df14d47d41f0ad348a96a0b37f3deb6 100644 --- a/src/actions/speller.py +++ b/src/actions/speller.py @@ -4,6 +4,10 @@ from telethon import events def check_missing_dot(message: str): + if not message: + return False + if all([x in ")(0" for x in message]): + return False return not message.endswith((".", "?", "!")) and not message.startswith(".")