Improve field name.

This commit is contained in:
levlam 2024-03-19 14:42:40 +03:00
parent 74b3c23e4b
commit e774ddab6e
2 changed files with 5 additions and 5 deletions

View File

@ -623,15 +623,15 @@ businessConnectedBot bot_user_id:int53 recipients:businessRecipients can_reply:B
//@description Describes settings for a business account intro
//@title Title text of the intro
//@param_description Description text of the intro
//@message Message text of the intro
//@sticker Greeting sticker of the intro; may be null if none
businessIntro title:string description:string sticker:sticker = BusinessIntro;
businessIntro title:string message:string sticker:sticker = BusinessIntro;
//@description Describes settings for a business account intro to set
//@title Title text of the intro
//@param_description Description text of the intro
//@message Message text of the intro
//@sticker Greeting sticker of the intro; pass null if none. The sticker must belong to a sticker set and must not be a custom emoji
inputBusinessIntro title:string description:string sticker:InputFile = InputBusinessIntro;
inputBusinessIntro title:string message:string sticker:InputFile = InputBusinessIntro;
//@description Describes an interval of time when the business is open
//@start_minute The first minute of the interval since start of the week; 0-7*24*60

View File

@ -27,7 +27,7 @@ BusinessIntro::BusinessIntro(Td *td, td_api::object_ptr<td_api::inputBusinessInt
return;
}
title_ = std::move(intro->title_);
description_ = std::move(intro->description_);
description_ = std::move(intro->message_);
auto r_file_id = td->file_manager_->get_input_file_id(FileType::Sticker, intro->sticker_, DialogId(), true, false);
auto file_id = r_file_id.is_ok() ? r_file_id.move_as_ok() : FileId();
if (file_id.is_valid()) {