Update C++ example to 1.7.10.

This commit is contained in:
levlam 2021-12-19 13:16:00 +03:00
parent 5587f10eba
commit 1f68217399

View File

@ -210,7 +210,7 @@ class TdExample {
[this](td_api::updateNewMessage &update_new_message) {
auto chat_id = update_new_message.message_->chat_id_;
std::string sender_name;
td_api::downcast_call(*update_new_message.message_->sender_,
td_api::downcast_call(*update_new_message.message_->sender_id_,
overloaded(
[this, &sender_name](td_api::messageSenderUser &user) {
sender_name = get_user_name(user.user_id_);