Fix type checking

This commit is contained in:
Paul Nameless 2020-09-13 19:39:14 +03:00
parent b2b82e8407
commit 489f2ccbf8
2 changed files with 2 additions and 1 deletions

View file

@ -8,6 +8,7 @@ from tempfile import NamedTemporaryFile
from typing import Any, Callable, Dict, List, Optional
from telegram.utils import AsyncResult
from tg import config
from tg.models import Model
from tg.msg import MsgProxy

View file

@ -163,7 +163,7 @@ class Model:
if chat_id is None:
return False
# order is matter: this should be before send_message
# otherwise it vill view message that was sent
# otherwise it will view message that was sent
self.view_all_msgs()
self.msgs.send_message(chat_id, text)
return True