yes. I build an image via cv2 and store it as .jpg file -- file viewers display it valid -- it works on 1.26.1 -- was trying to do the same with .png
as I told. I build an image via cv2 and before I was doing this (v1.26.1): filepath = 'name.jpg' cv2.imwrite(filepath, im_tile) await client.send_message(user_id, msg, file=filepath) on version v1.32 it doesn't work anymore with same images and same code (or sometimes work, sometimes not) that's what I did to let it work on v1.32: filepath = 'name.jpg' cv2.imwrite(filepath, im_tile) with open(filepath, 'rb') as f: image_data = io.BytesIO(f.read()) image_data.name = 'name.jpg' await client.send_message(user_id, msg, file=image_data) same thing but loaded cv2 result in-memory with the hint https://t.me/TelethonUpdates/1402
Обсуждают сегодня