mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-09-19 10:22:45 +03:00
Added type hint to NewMessage.Event.message
Before, when retrieving a message from the event, the type was "Unknown".
This commit is contained in:
parent
6a7a981b7a
commit
374b38db8c
|
@ -196,7 +196,7 @@ class NewMessage(EventBuilder):
|
||||||
...
|
...
|
||||||
>>>
|
>>>
|
||||||
"""
|
"""
|
||||||
def __init__(self, message):
|
def __init__(self, message: types.Message):
|
||||||
self.__dict__['_init'] = False
|
self.__dict__['_init'] = False
|
||||||
super().__init__(chat_peer=message.peer_id,
|
super().__init__(chat_peer=message.peer_id,
|
||||||
msg_id=message.id, broadcast=bool(message.post))
|
msg_id=message.id, broadcast=bool(message.post))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user