Fix documentation.
GitOrigin-RevId: 4c3bc6a52792adf79e055132dcd3ec9f8fb4186c
This commit is contained in:
parent
051acb85af
commit
dd1ae68f57
@ -2128,7 +2128,7 @@ backgroundTypeFill fill:BackgroundFill = BackgroundType;
|
||||
//@is_default True, if this is one of default backgrounds
|
||||
//@is_dark True, if the background is dark and is recommended to be used with dark theme
|
||||
//@name Unique background name
|
||||
//@document Document with the background; may be null. Null only for solid and gradient backgrounds
|
||||
//@document Document with the background; may be null. Null only for filled backgrounds
|
||||
//@type Type of the background
|
||||
background id:int64 is_default:Bool is_dark:Bool name:string document:document type:BackgroundType = Background;
|
||||
|
||||
@ -3967,7 +3967,7 @@ getBackgroundUrl name:string type:BackgroundType = HttpUrl;
|
||||
searchBackground name:string = Background;
|
||||
|
||||
//@description Changes the background selected by the user; adds background to the list of installed backgrounds
|
||||
//@background The input background to use, null for solid and gradient backgrounds
|
||||
//@background The input background to use, null for filled backgrounds
|
||||
//@type Background type; null for default background. The method will return error 404 if type is null
|
||||
//@for_dark_theme True, if the background is chosen for dark theme
|
||||
setBackground background:InputBackground type:BackgroundType for_dark_theme:Bool = Background;
|
||||
|
@ -5216,7 +5216,7 @@ void ContactsManager::set_channel_discussion_group(DialogId dialog_id, DialogId
|
||||
return promise.set_error(Status::Error(400, "Chat is not a channel"));
|
||||
}
|
||||
if (!c->status.is_administrator() || !c->status.can_change_info_and_settings()) {
|
||||
return promise.set_error(Status::Error(400, "Have not enough rights in the channel"));
|
||||
return promise.set_error(Status::Error(400, "Not enough rights in the channel"));
|
||||
}
|
||||
|
||||
broadcast_input_channel = td_->contacts_manager_->get_input_channel(broadcast_channel_id);
|
||||
@ -5245,7 +5245,7 @@ void ContactsManager::set_channel_discussion_group(DialogId dialog_id, DialogId
|
||||
return promise.set_error(Status::Error(400, "Discussion chat is not a supergroup"));
|
||||
}
|
||||
if (!c->status.is_administrator() || !c->status.can_pin_messages()) {
|
||||
return promise.set_error(Status::Error(400, "Have not enough rights in the supergroup"));
|
||||
return promise.set_error(Status::Error(400, "Not enough rights in the supergroup"));
|
||||
}
|
||||
|
||||
group_input_channel = td_->contacts_manager_->get_input_channel(group_channel_id);
|
||||
@ -5285,7 +5285,7 @@ void ContactsManager::set_channel_location(DialogId dialog_id, const DialogLocat
|
||||
return promise.set_error(Status::Error(400, "Chat is not a supergroup"));
|
||||
}
|
||||
if (!c->status.is_creator()) {
|
||||
return promise.set_error(Status::Error(400, "Have not enough rights in the supergroup"));
|
||||
return promise.set_error(Status::Error(400, "Not enough rights in the supergroup"));
|
||||
}
|
||||
|
||||
td_->create_handler<EditLocationQuery>(std::move(promise))->send(channel_id, location);
|
||||
@ -5317,7 +5317,7 @@ void ContactsManager::set_channel_slow_mode_delay(DialogId dialog_id, int32 slow
|
||||
return promise.set_error(Status::Error(400, "Chat is not a supergroup"));
|
||||
}
|
||||
if (!get_channel_permissions(c).can_restrict_members()) {
|
||||
return promise.set_error(Status::Error(400, "Have not enough rights in the supergroup"));
|
||||
return promise.set_error(Status::Error(400, "Not enough rights in the supergroup"));
|
||||
}
|
||||
|
||||
td_->create_handler<ToggleSlowModeQuery>(std::move(promise))->send(channel_id, slow_mode_delay);
|
||||
|
Loading…
Reference in New Issue
Block a user