Support live photo in PollMedia.

main
levlam 1 month ago
parent 7477330470
commit 27134d849c

@ -2315,7 +2315,11 @@ class Client::JsonPollMedia final : public td::Jsonable {
}
case td_api::messagePhoto::ID: {
auto content = static_cast<const td_api::messagePhoto *>(content_);
object("photo", JsonPhoto(content->photo_.get(), client_));
if (content->video_ != nullptr) {
object("live_photo", JsonLivePhoto(content->photo_.get(), content->video_.get(), client_));
} else {
object("photo", JsonPhoto(content->photo_.get(), client_));
}
break;
}
case td_api::messageSticker::ID: {

Loading…
Cancel
Save