Похожие чаты

There are 3 chats in which there are many posts

with photos. For example, there are 10 photos taken from these 3 chats. You need to determine which photo is from which chat.

I want to first go through telethon and collect all the photos from the chats. I tried to store it in bytes and then compare it with the bytes of the search image, but the bytes do not completely match. How else can this be implemented? Maybe telethon has something similar to file_id?

6 ответов

20 просмотров

You're not clear enough, what do you mean "there are 10 photos taken from these 3 chats"

Andriy- Автор вопроса

i mean i have 10 pictures on my laptop from these chats. and I need to write code to understand which photo is from which of these 3 chats. To do this, I throw one of the images that I am looking for into "saved messages" and compare the bytes of the image with the bytes of all photos in these chats

Andriy
i mean i have 10 pictures on my laptop from these ...

I see nothing related to telethon in this. Telegram may compress the images if they're resent... and images have different sizes, each telegram app may downalod it in different sizes than telethon's download_media. do your tests first on samples and digest hashes of same images downaloded from different places

Andriy- Автор вопроса
⎞ .·. ⎝ ⎝
I see nothing related to telethon in this. Telegra...

@search7kmBot this bot searches the database with chats in this way, if you send it an original photo. I think it was implemented through the telethon

Andriy
screenshot

what i said still applies, your "bytes" of images may have different sizes, this fully unrelated to telethon, and file_id won't help. the bot just gathers hashes of media

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта