Dineshkarthik / telegram_media_downloader

Download media files from a telegram conversation/chat/channel up to 2GiB per file
MIT License
2.08k stars 359 forks source link

private down #27

Closed loeveo closed 4 years ago

loeveo commented 4 years ago

Hope to support undisclosed private chat group download

issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.71. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

Dineshkarthik commented 4 years ago

@loeveo can you elaborate more on this undisclosed private chat group? It would be helpful if you can share some telegram document/blog.

loeveo commented 4 years ago

@loeveo您可以详细说明undisclosed private chat group吗? 如果您可以共享一些电报文档/博客,将很有帮助。

The private join link seems to have the invitation link only for group owners and administrators, and ordinary members cannot get the invitation link. Then tg users create a private chat group that is not public by default. Only after the creation is completed will the public function be available , Of course this is seen from the phone

Dineshkarthik commented 4 years ago

From what I understand you are talking about how to get the chat-id of a private chat group. Please correct me if I am wrong.

loeveo commented 4 years ago

据我了解,您正在谈论如何获取私人聊天组的聊天ID。如果我错了,请纠正我。

The ID can be obtained. After all, just copy a file link, and then there will be an ID. But the current API used by the program will report an error, the current ID does not exist

loeveo commented 4 years ago

From what I understand you are talking about how to get the chat-id of a private chat group. Please correct me if I am wrong.

If an error is reported, there is another lssues

loeveo commented 4 years ago

据我了解,您正在谈论如何获取私人聊天组的聊天ID。如果我错了,请纠正我。

ike this "https://web.telegram.org/#/im?p=s1277084497_17461191378986610971" i tried 1277084497 as chat id,but got an error pyrogram.errors.exceptions.bad_request_400.PeerIdInvalid: [400 PEER_ID_INVALID]: The id/access_hash combination is invalid

Dineshkarthik commented 4 years ago

Now I get the issue, it is related to getting the group id of a super group. Use the @myidbot - https://t.me/myidbot, add this bot to the group and use /getgroupid to get the group-id which will return you something like -xxxxxxxxxxxx and use it in the config yaml.

More about myidbot can be found here - https://botostore.com/c/myidbot/

Dineshkarthik commented 4 years ago

据我了解,您正在谈论如何获取私人聊天组的聊天ID。如果我错了,请纠正我。

ike this "https://web.telegram.org/#/im?p=s1277084497_17461191378986610971" i tried 1277084497 as chat id,but got an error pyrogram.errors.exceptions.bad_request_400.PeerIdInvalid: [400 PEER_ID_INVALID]: The id/access_hash combination is invalid

For super group the chat-d will be "https://web.telegram.org/#/im?p=s1277084497_17461191378986610971" - -1001277084497 add -100 to the start of the id

loeveo commented 4 years ago

The same does not work. It seems that only p=s* can not be downloaded

Dineshkarthik commented 4 years ago

Adding -100 to the start of the ID should work, I just created a Supergroup and tested it. If you are getting any error can you share it here?

loeveo commented 4 years ago

Adding -100 to the start of the ID should work, I just created a Supergroup and tested it. If you are getting any error can you share it here?

Great. It finally works. If it prompts an error, add -100 before the id. Now the download is successful. But it seems that only p=s* can add -100

loeveo commented 4 years ago

Adding -100 to the start of the ID should work, I just created a Supergroup and tested it. If you are getting any error can you share it here?

Great. It finally works. If it prompts an error, add -100 before the id. Now the download is successful. But it seems that only p=s* can add -100

Dineshkarthik commented 4 years ago

yeah you have to add -100 only to a Supergroup a.k.a p=s*