From dd1ae68f57914c9983cc507a08eb4d825758a676 Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 23 Dec 2019 01:55:14 +0300 Subject: [PATCH] Fix documentation. GitOrigin-RevId: 4c3bc6a52792adf79e055132dcd3ec9f8fb4186c --- td/generate/scheme/td_api.tl | 4 ++-- td/telegram/ContactsManager.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index 064d0978e..0ad0a8ced 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -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; diff --git a/td/telegram/ContactsManager.cpp b/td/telegram/ContactsManager.cpp index 8fb6c98c7..78717311b 100644 --- a/td/telegram/ContactsManager.cpp +++ b/td/telegram/ContactsManager.cpp @@ -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(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(std::move(promise))->send(channel_id, slow_mode_delay);