mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2026-09-04 16:10:39 +00:00
Update to layer 166
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import datetime
|
||||
|
||||
from .. import TLObject
|
||||
from .. import TLObject, types
|
||||
from ..functions.messages import SaveDraftRequest
|
||||
from ..types import DraftMessage
|
||||
from ...errors import RPCError
|
||||
@@ -139,7 +139,7 @@ class Draft:
|
||||
peer=self._peer,
|
||||
message=raw_text,
|
||||
no_webpage=not link_preview,
|
||||
reply_to_msg_id=reply_to,
|
||||
reply_to=None if reply_to is None else types.InputReplyToMessage(reply_to),
|
||||
entities=entities
|
||||
))
|
||||
|
||||
|
||||
@@ -68,6 +68,9 @@ class Message(ChatGetter, SenderGetter, TLObject):
|
||||
noforwards (`bool`):
|
||||
Whether this message can be forwarded or not.
|
||||
|
||||
invert_media (`bool`):
|
||||
Whether the media in this message should be inverted.
|
||||
|
||||
id (`int`):
|
||||
The ID of this message. This field is *always* present.
|
||||
Any other member is optional and may be `None`.
|
||||
@@ -200,6 +203,7 @@ class Message(ChatGetter, SenderGetter, TLObject):
|
||||
edit_hide: Optional[bool] = None,
|
||||
pinned: Optional[bool] = None,
|
||||
noforwards: Optional[bool] = None,
|
||||
invert_media: Optional[bool] = None,
|
||||
reactions: Optional[types.TypeMessageReactions] = None,
|
||||
restriction_reason: Optional[types.TypeRestrictionReason] = None,
|
||||
forwards: Optional[int] = None,
|
||||
@@ -234,6 +238,7 @@ class Message(ChatGetter, SenderGetter, TLObject):
|
||||
self.edit_date = edit_date
|
||||
self.pinned = pinned
|
||||
self.noforwards = noforwards
|
||||
self.invert_media = invert_media
|
||||
self.post_author = post_author
|
||||
self.grouped_id = grouped_id
|
||||
self.reactions = reactions
|
||||
|
||||
Reference in New Issue
Block a user