print the result to find where it is
it doesn't work if i use result.chats[0]
self.channel = utils.get_input_channel(await client.get_input_entity(self.channel)) _raise_cast_fail(entity, 'InputChannel') raise TypeError('Cannot cast {} to any kind of {}.'.format( TypeError: Cannot cast InputPeerChat to any kind of InputChannel.
could be a bug, dno
Hey, can you please help me with an easy code to login to account which has 2fa
Hey, that's not how you ask a question! If you want helpful advice (or any response at all) read this first and then ask again. If you have the time, How To Ask Questions The Smart Way is another wonderful resource worth reading.
self.channel likely is a Chat. get_input_entity returns InputPeerChat. that cannot be converted to InputChannel.
Обсуждают сегодня