mirror of
https://github.com/paul-nameless/tg
synced 2024-11-25 13:20:25 +00:00
Fix type checking
This commit is contained in:
parent
b2b82e8407
commit
489f2ccbf8
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue