diff --git a/td/telegram/BusinessInfo.cpp b/td/telegram/BusinessInfo.cpp index 9cf379aae..de9723fd3 100644 --- a/td/telegram/BusinessInfo.cpp +++ b/td/telegram/BusinessInfo.cpp @@ -9,6 +9,9 @@ namespace td { td_api::object_ptr BusinessInfo::get_business_info_object(Td *td) const { + if (is_empty()) { + return nullptr; + } return td_api::make_object(location_.get_business_location_object(), work_hours_.get_business_opening_hours_object(), greeting_message_.get_business_greeting_message_settings_object(td),