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

Support Chatid Sending? #160

Closed BlueSkyXN closed 1 year ago

BlueSkyXN commented 2 years ago

For example, -1001461731582 / 1461731582 (used in other tg bot/api) When I try to use id instead of username/link, system error

ValueError: Cannot find any entity corresponding to "XXXXXXXXX"

Like this

I tried -f / --to , same problem

In addition, if the channel/group link is not public, the link format is https://t.me/+XXXXX, the same error is reported

tissole commented 2 years ago

There's a pull request that adds support for sending files to chat ID. Only missing now is downloading from chat ID.

tissole commented 2 years ago

Yes. I just run a test with "telegram-upload --to chatID "D:\Backup\New" --directories recursive --large-files split" The file is 7 GB and I see that is uploading with no errors.

On Thursday, June 23, 2022 at 05:23:32 PM GMT+3, xd003 ***@***.***> wrote:  

There's a pull request that adds support for sending files to chat ID. Only missing now is downloading from chat ID.

are you sure that it works ? telegram-upload --to CHAT_ID --directories recursive --large-files split 100MB.bin gives me the following error TypeError: argument of type 'int' is not iterable

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

Nekmo commented 1 year ago

Duplicate of #118.