tdesktop
tdesktop copied to clipboard
How to obtain received image information in source code
Steps to reproduce
I am making some custom changes to the window client in order to obtain images received during chats, but I am using the API in the Telegram. sln project_ Unable to find a method to retrieve images in the updates.cpp file
Expected behaviour
I hope to obtain image content in MTPPhoto
Actual behaviour
auto &d = update.c_updateNewMessage();
auto &data = d.vmessage().c_message();
tl::conditional<MTPMessageMedia> media = data.vmedia();
// However, no image information was found in the following MTPPhoto classes, only related information such as size,
auto photo = media->c_messageMediaPhoto().vphoto();
auto size = photo->c_photo().vsizes();
Operating system
window 11
Version of Telegram Desktop
1.8.0
Installation source
Other (unofficial) source
Crash ID
No response
Logs
No response