mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-22 13:06:37 +00:00
Fix get_sender when using it on a ChannelForbidden (#3053)
Closes #3051.
This commit is contained in:
parent
b2c26a53ef
commit
08a11eeacf
@ -44,7 +44,7 @@ class SenderGetter(abc.ABC):
|
|||||||
# in which case we want to force fetch the entire thing because
|
# in which case we want to force fetch the entire thing because
|
||||||
# the user explicitly called a method. If the user is okay with
|
# the user explicitly called a method. If the user is okay with
|
||||||
# cached information, they may use the property instead.
|
# cached information, they may use the property instead.
|
||||||
if (self._sender is None or self._sender.min) \
|
if (self._sender is None or getattr(self._sender, 'min', None)) \
|
||||||
and await self.get_input_sender():
|
and await self.get_input_sender():
|
||||||
try:
|
try:
|
||||||
self._sender =\
|
self._sender =\
|
||||||
|
Loading…
Reference in New Issue
Block a user