Closed Mycah closed 1 year ago
The channel name that you are adding is not actually the name in the URL. You need to select only the channel's name that is visible in the URL. https://t.me/ChannelName. Telegram's API only recognizes the official name, again, the one that is in the URL.
Is there a way to find that within the client? I only have invite links (which don't have channel names either), and can't see any way to find them using the web ui or desktop app.
fyi i used telethon to to do this:
async for dialog in client.iter_dialogs():
if dialog.is_channel:
print(f'{dialog.id}:{dialog.title}')
It only gave me the same titles i see in the apps.
Why dont you click on the channel's name using the desktop app (above number of subscribers)? This will open a pop-up. There, you can see something like t.me/channelname. Using the client, you will need to find in docs the class GetChannelsRequest
or GetFullChannelRequest
. Those will return data from the requested channel, but you need either the channel name (without spaces) or the channel id.
I stupidly got my phone number banned, I guess trying to login too much. I'll try those options once I can connect again. I did look in the info for the channel, etc and couldn't find any t.me links, but now that I'm locked out I can't confirm.
I'm trying to connect to channels with spaces in their name and constantly get errors.
I've tried with quotes and with
\
, same error.I also created a text file with the channel names using --batch-file, and it fails in the same manner.