Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23131

Telethon joining private channels

$
0
0

I tried using ImportChatInviteRequest like it says in the docs, but couldn't join public or private channels. With JoinChannelRequest I can only join public channels. Is there a way I'm missing?

CHANNEL = 'https://t.me/TEST_INVITE'await client(JoinChannelRequest(CHANNEL))print(f'Successfully joined channel {CHANNEL}')

Tried this code with different CHANNEL variable structures

await client(JoinChannelRequest(CHANNEL))print(f'Successfully joined channel {CHANNEL}')

such as

CHANNEL = 'https://t.me/TEST_INVITE'# andCHANNEL = 'TEST_INVITE'

Viewing all articles
Browse latest Browse all 23131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>