𝙰𝙺
Size: a a a
𝙰𝙺
ZR
𝙰𝙺
𝙰𝙺
s
𝙰𝙺
𝙰𝙺
𝙰𝙺
𝙰𝙺
ZR
s
s
MM
from telethon.tl.functions.channels import TogglePreHistoryHiddenRequest
await client(TogglePreHistoryHiddenRequest(channel=(await client.get_entity(536804499)), enabled=False))
Traceback (most recent call last):
File "/home/m4xx1m/.local/lib/python3.8/site-packages/telethon/client/users.py", line 30, in __call__
return await self._call(self._sender, request, ordered=ordered)
File "/home/m4xx1m/.local/lib/python3.8/site-packages/telethon/client/users.py", line 37, in _call
await r.resolve(self, utils)
File "/home/m4xx1m/.local/lib/python3.8/site-packages/telethon/tl/functions/channels.py", line 1251, in resolve
self.channel = utils.get_input_channel(await client.get_input_entity(self.channel))
File "/home/m4xx1m/.local/lib/python3.8/site-packages/telethon/utils.py", line 263, in get_input_channel
_raise_cast_fail(entity, 'InputChannel')
File "/home/m4xx1m/.local/lib/python3.8/site-packages/telethon/utils.py", line 138, in _raise_cast_fail
raise TypeError('Cannot cast {} to any kind of {}.'.format(
TypeError: Cannot cast InputPeerChat to any kind of InputChannel.
MM
𝙰𝙺
ZR