mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-26 03:13:45 +03:00
parent
81baced12b
commit
5a57a8a498
|
@ -51,7 +51,7 @@ from .tl.types import (
|
||||||
InputUserSelf, UserProfilePhoto, ChatPhoto, UpdateMessageID,
|
InputUserSelf, UserProfilePhoto, ChatPhoto, UpdateMessageID,
|
||||||
UpdateNewChannelMessage, UpdateNewMessage, UpdateShortSentMessage,
|
UpdateNewChannelMessage, UpdateNewMessage, UpdateShortSentMessage,
|
||||||
PeerUser, InputPeerUser, InputPeerChat, InputPeerChannel, MessageEmpty,
|
PeerUser, InputPeerUser, InputPeerChat, InputPeerChannel, MessageEmpty,
|
||||||
ChatInvite, ChatInviteAlready
|
ChatInvite, ChatInviteAlready, PeerChannel
|
||||||
)
|
)
|
||||||
from .tl.types.messages import DialogsSlice
|
from .tl.types.messages import DialogsSlice
|
||||||
from .extensions import markdown
|
from .extensions import markdown
|
||||||
|
@ -558,7 +558,7 @@ class TelegramClient(TelegramBareClient):
|
||||||
elif getattr(m, 'fwd_from', None):
|
elif getattr(m, 'fwd_from', None):
|
||||||
# .from_id is optional, so this is the sanest fallback.
|
# .from_id is optional, so this is the sanest fallback.
|
||||||
who = entities[utils.get_peer_id(
|
who = entities[utils.get_peer_id(
|
||||||
m.fwd_from.from_id or m.fwd_from.channel_id,
|
m.fwd_from.from_id or PeerChannel(m.fwd_from.channel_id),
|
||||||
add_mark=True
|
add_mark=True
|
||||||
)]
|
)]
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user