mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-29 04:43:45 +03:00
Fix SenderGetter should not define abstract methods
Or at least it shouldn't if subclasses are likely to not implement them, which causes an error if left un-implemented.
This commit is contained in:
parent
84c197be60
commit
adc9b4c9f1
|
@ -42,7 +42,7 @@ class SenderGetter(abc.ABC):
|
|||
self._sender =\
|
||||
await self._client.get_entity(self._input_sender)
|
||||
except ValueError:
|
||||
await self._reload_message()
|
||||
await self._refetch_sender()
|
||||
return self._sender
|
||||
|
||||
@property
|
||||
|
@ -83,9 +83,3 @@ class SenderGetter(abc.ABC):
|
|||
"""
|
||||
Re-fetches sender information through other means.
|
||||
"""
|
||||
|
||||
@abc.abstractmethod
|
||||
async def _reload_message(self):
|
||||
"""
|
||||
Subclasses should implement message reloading.
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user