Похожие чаты

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 ответов

9 просмотров

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

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

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

а зачем этот вопрос для удаления из чата?
Mёdkinson Medvezhkin
63
using next image component with s3 image: "url" parameter is valid but upstream response is invalid code: <Image fill src={s...
Fasil
3
Эх кто-то пришел и весь праздник испортил :( You need complex FBX scene importing setup to change things on import? good luck with that. You need navigation and pathfinding? g...
Serg Gini
5
Friends, how can I find my Wazirx wallet address?
Silm Silm
31
Всем привет! Подскажите. Я написал приложение на Delphi 10.2 Tokyo под Windows 10. И передо мной стал вопрос о том чтобы сделать это приложение кроссплатформенным (под Linux и...
Дмитрий Завгородний
24
Какого хера? /Sources/App/Modules/User/Models/UserLinkApple.swift:21:20: warning: stored property '_id' of 'Sendable'-conforming class 'UserLinkApple' is mutable @ID(...
Alexander Sherbakov
14
My 7 year old daughter recognizes the Bitcoin symbol and knows it's currency. What are the top ,3-5 most basic important concepts to convey to a kid about BCH? I started with ...
Big Hair
24
How many Cashfusion server now?
Crypto life
22
But I'm wondering how exactly we can increase our chances of winning. Do you think it's just a matter of luck, or are there specific actions we need to take to qualify?
Luqman Ayman
12
Кто знает локации, где можно машину красиво отфоткать?
Lalalashechki Lalala
23
Карта сайта