Minor improvements.

This commit is contained in:
levlam 2023-11-30 18:26:33 +03:00
parent 1604ee7b1d
commit 9096e646b8
5 changed files with 6 additions and 6 deletions

View File

@ -34,7 +34,7 @@ class TdClient {
* Create TdClient.
* @param {Object} options - Options for TDLib instance creation.
* @param {TdClient~updateCallback} options.onUpdate - Callback for all incoming updates.
* @param {string} [options.instanceName=tdlib] - Name of the TDLib instance. Currently only one instance of TdClient with a given name is allowed. All but one instances with the same name will be automatically closed. Usually, the newest non-background instance is kept alive. Files will be stored in an IndexedDb table with the same name.
* @param {string} [options.instanceName=tdlib] - Name of the TDLib instance. Currently, only one instance of TdClient with a given name is allowed. All but one instances with the same name will be automatically closed. Usually, the newest non-background instance is kept alive. Files will be stored in an IndexedDb table with the same name.
* @param {boolean} [options.isBackground=false] - Pass true if the instance is opened from the background.
* @param {string} [options.jsLogVerbosityLevel=info] - The initial verbosity level of the JavaScript part of the code (one of 'error', 'warning', 'info', 'log', 'debug').
* @param {number} [options.logVerbosityLevel=2] - The initial verbosity level for the TDLib internal logging (0-1023).

View File

@ -2900,7 +2900,7 @@ messagePremiumGiveawayCreated = MessageContent;
messagePremiumGiveaway parameters:premiumGiveawayParameters winner_count:int32 month_count:int32 sticker:sticker = MessageContent;
//@description A Telegram Premium giveaway has been completed for the chat
//@giveaway_message_id Identifier of the message with the giveaway, can be an identifier of a deleted message
//@giveaway_message_id Identifier of the message with the giveaway, can be an identifier of a deleted message
//@winner_count Number of winners in the giveaway
//@unclaimed_prize_count Number of undistributed prizes
messagePremiumGiveawayCompleted giveaway_message_id:int53 winner_count:int32 unclaimed_prize_count:int32 = MessageContent;
@ -8118,7 +8118,7 @@ reportStory story_sender_chat_id:int53 story_id:int32 reason:ReportReason text:s
//-and for the next "story_stealth_mode_future_period" seconds; for Telegram Premium users only
activateStoryStealthMode = Ok;
//@description Returns forwards of a story as a message to public chats and reposts by public channels. Can be used only if story.can_get_statistics == true, or the story is posted on behalf of the current user.
//@description Returns forwards of a story as a message to public chats and reposts by public channels. Can be used only if the story is posted on behalf of the current user or story.can_get_statistics == true.
//-For optimal performance, the number of returned messages and stories is chosen by TDLib
//@story_sender_chat_id The identifier of the sender of the story
//@story_id The identifier of the story

View File

@ -845,7 +845,7 @@ class UpdateProfileColorQuery final : public Td::ResultHandler {
return on_error(result_ptr.move_as_error());
}
LOG(DEBUG) << "Receive result for UpdateColorQuery: " << result_ptr.ok();
LOG(DEBUG) << "Receive result for UpdateProfileColorQuery: " << result_ptr.ok();
td_->contacts_manager_->on_update_profile_accent_color_success(accent_color_id_, background_custom_emoji_id_);
promise_.set_value(Unit());
}

View File

@ -9783,7 +9783,7 @@ void MessagesManager::get_channel_differences_if_needed(
if (td_->auth_manager_->is_bot()) {
return promise.set_value(std::move(public_forwards));
}
MultiPromiseActorSafe mpas{"GetChannelDifferencesIfNeededMultiPromiseActor"};
MultiPromiseActorSafe mpas{"GetChannelDifferencesIfNeededForPublicForwardsMultiPromiseActor"};
mpas.add_promise(Promise<Unit>());
mpas.set_ignore_errors(true);
auto lock = mpas.get_promise();

View File

@ -170,7 +170,7 @@ TDJSON_EXPORT const char *td_json_client_receive(void *client, double timeout);
* Only a few requests can be executed synchronously.
* Returned pointer will be deallocated by TDLib during next call to td_json_client_receive or td_json_client_execute
* in the same thread, so it can't be used after that.
* \param[in] client The client. Currently ignored for all requests, so NULL can be passed.
* \param[in] client The client. Currently, ignored for all requests, so NULL can be passed.
* \param[in] request JSON-serialized null-terminated request to TDLib.
* \return JSON-serialized null-terminated request response.
*/