From 037581d741daeddf689154f293ae49c890d28846 Mon Sep 17 00:00:00 2001
From: Pavel Kirilin <win10@list.ru>
Date: Wed, 1 Jul 2020 10:59:21 +0400
Subject: [PATCH] Fixed speller.

Signed-off-by: Pavel Kirilin <win10@list.ru>
---
 src/actions/speller.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/actions/speller.py b/src/actions/speller.py
index c3b9ef4..856daa8 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(".")
 
 
-- 
GitLab