Nekmo / telegram-upload

Upload and download files from Telegram up to 4 GiB using your account
MIT License
1.09k stars 237 forks source link

Feature Request - Choose channel by ID #118

Closed tissole closed 1 year ago

tissole commented 3 years ago

Now uploading to a private channel is possible only by indicating the invite link, is not working with channel ID. But this method triggers some wait messages from TG after some time and the script stops.

Please add an option to use channels IDs

Nekmo commented 3 years ago

It will be investigated. Can you put an example id?

tissole commented 3 years ago

This is a channel ID.

Channel ID

Many unofficial Telegram clients show channel and group IDs when a user clicks on the channel name. There are also numerous bots that show this info, like @userinfobot for example. The error I got is similar to that posted on #111. Channel usernames can be used only for public channels and groups, but private channels and groups don't have usernames and the only option is to use their IDs.

Using channel invite triggers flood errors because Telegram confuses files uploaded with users added to a channel/group. I made my channel public and I used the username and the error was not encountered anymore.

muyangren907 commented 3 years ago

@tissole Maybe this can help you https://github.com/muyangren907/telegram-upload @Nekmo Because I am not very familiar with GitHub operation, I can only fork a copy and submit it in my own warehouse

tissole commented 3 years ago

@muyangren907 Thanks a lot! I tested and is working! No more flood messages :)

Nekmo commented 1 year ago

Fixed in telegram-upload v0.6.0.