aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--example/README.md2
-rw-r--r--td/generate/scheme/td_api.tl2
-rw-r--r--td/telegram/AutosaveManager.cpp2
-rw-r--r--td/telegram/AutosaveManager.h2
-rw-r--r--td/telegram/MessageContent.cpp2
-rw-r--r--td/telegram/MessagesManager.cpp4
-rw-r--r--td/telegram/SecretChatActor.h2
-rw-r--r--td/telegram/Td.cpp4
-rw-r--r--td/telegram/misc.cpp2
-rw-r--r--tdactor/test/actors_simple.cpp2
-rw-r--r--tdnet/td/net/HttpConnectionBase.cpp2
-rw-r--r--tdutils/td/utils/Hash.h2
-rw-r--r--tdutils/td/utils/ObjectPool.h2
-rw-r--r--tdutils/td/utils/filesystem.h2
-rw-r--r--tdutils/td/utils/port/SocketFd.cpp2
15 files changed, 17 insertions, 17 deletions
diff --git a/example/README.md b/example/README.md
index 99efe9df0..7a29c3d1e 100644
--- a/example/README.md
+++ b/example/README.md
@@ -63,7 +63,7 @@ You can also check out [example/python/tdjson_example.py](https://github.com/tdl
TDLib can be compiled to WebAssembly or asm.js and used in a browser from JavaScript. See [tdweb](https://github.com/tdlib/td/tree/master/example/web) as a convenient wrapper for TDLib in a browser
and [telegram-react](https://github.com/evgeny-nadymov/telegram-react) as an example of a TDLib-based Telegram client.
-See also [Svelte-tdweb-starter](https://github.com/gennadypolakov/svelte-tdweb-starter) - Svelte wrapper for tdweb, and [Telegram-Photoframe](https://github.com/lukefx/telegram-photoframe) - a web application that displays your prefered group or channel as Photoframe.
+See also [Svelte-tdweb-starter](https://github.com/gennadypolakov/svelte-tdweb-starter) - Svelte wrapper for tdweb, and [Telegram-Photoframe](https://github.com/lukefx/telegram-photoframe) - a web application that displays your preferred group or channel as Photoframe.
TDLib can be used from Node.js through the [JSON](https://github.com/tdlib/td#using-json) interface.
diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl
index 6aff624d4..0d63caeb4 100644
--- a/td/generate/scheme/td_api.tl
+++ b/td/generate/scheme/td_api.tl
@@ -1201,7 +1201,7 @@ messageReplyToStory story_sender_chat_id:int53 story_id:int32 = MessageReplyTo;
//@reply_to Information about the message or the story this message is replying to; may be null if none
//@message_thread_id If non-zero, the identifier of the message thread the message belongs to; unique within the chat to which the message belongs
//@self_destruct_type The message's self-destruct type; may be null if none
-//@self_destruct_in Time left before the message self-destruct timer expires, in seconds; 0 if self-desctruction isn't scheduled yet
+//@self_destruct_in Time left before the message self-destruct timer expires, in seconds; 0 if self-destruction isn't scheduled yet
//@auto_delete_in Time left before the message will be automatically deleted by message_auto_delete_time setting of the chat, in seconds; 0 if never
//@via_bot_user_id If non-zero, the user identifier of the bot through which this message was sent
//@author_signature For channel posts and anonymous group messages, optional author signature
diff --git a/td/telegram/AutosaveManager.cpp b/td/telegram/AutosaveManager.cpp
index 0af476299..6a056460a 100644
--- a/td/telegram/AutosaveManager.cpp
+++ b/td/telegram/AutosaveManager.cpp
@@ -512,7 +512,7 @@ void AutosaveManager::set_autosave_settings(td_api::object_ptr<td_api::AutosaveS
->send(users, chats, broadcasts, dialog_id, new_settings.get_input_auto_save_settings());
}
-void AutosaveManager::clear_autosave_settings_excpetions(Promise<Unit> &&promise) {
+void AutosaveManager::clear_autosave_settings_exceptions(Promise<Unit> &&promise) {
if (!settings_.are_inited_) {
return promise.set_error(Status::Error(400, "Autosave settings must be loaded first"));
}
diff --git a/td/telegram/AutosaveManager.h b/td/telegram/AutosaveManager.h
index c35cfe9b5..2bbe056df 100644
--- a/td/telegram/AutosaveManager.h
+++ b/td/telegram/AutosaveManager.h
@@ -32,7 +32,7 @@ class AutosaveManager final : public Actor {
void set_autosave_settings(td_api::object_ptr<td_api::AutosaveSettingsScope> &&scope,
td_api::object_ptr<td_api::scopeAutosaveSettings> &&settings, Promise<Unit> &&promise);
- void clear_autosave_settings_excpetions(Promise<Unit> &&promise);
+ void clear_autosave_settings_exceptions(Promise<Unit> &&promise);
void get_current_state(vector<td_api::object_ptr<td_api::Update>> &updates) const;
diff --git a/td/telegram/MessageContent.cpp b/td/telegram/MessageContent.cpp
index c8cf9ce3b..7ab1074ff 100644
--- a/td/telegram/MessageContent.cpp
+++ b/td/telegram/MessageContent.cpp
@@ -5520,7 +5520,7 @@ unique_ptr<MessageContent> get_action_message_content(Td *td, tl_object_ptr<tele
auto action = move_tl_object_as<telegram_api::messageActionPaymentSent>(action_ptr);
if (!reply_to_message_id.is_valid()) {
if (reply_to_message_id != MessageId()) {
- LOG(ERROR) << "Receive succesful payment message with " << reply_to_message_id << " in " << owner_dialog_id;
+ LOG(ERROR) << "Receive successful payment message with " << reply_to_message_id << " in " << owner_dialog_id;
}
reply_in_dialog_id = DialogId();
reply_to_message_id = MessageId();
diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp
index 6c1183851..df6b52960 100644
--- a/td/telegram/MessagesManager.cpp
+++ b/td/telegram/MessagesManager.cpp
@@ -28594,7 +28594,7 @@ void MessagesManager::upload_imported_message_attachment(DialogId dialog_id, int
bool is_reupload, Promise<Unit> &&promise,
vector<int> bad_parts) {
CHECK(file_id.is_valid());
- LOG(INFO) << "Ask to upload improted message attached file " << file_id;
+ LOG(INFO) << "Ask to upload imported message attached file " << file_id;
auto info =
td::make_unique<UploadedImportedMessageAttachmentInfo>(dialog_id, import_id, is_reupload, std::move(promise));
bool is_inserted = being_uploaded_imported_message_attachments_.emplace(file_id, std::move(info)).second;
@@ -31607,7 +31607,7 @@ void MessagesManager::set_dialog_background(Dialog *d, BackgroundInfo &&backgrou
d->is_background_inited = true;
if (is_changed) {
- LOG(INFO) << "Set " << d->dialog_id << " backgroud to " << d->background_info;
+ LOG(INFO) << "Set " << d->dialog_id << " background to " << d->background_info;
send_update_chat_background(d);
} else {
on_dialog_updated(d->dialog_id, "set_dialog_background");
diff --git a/td/telegram/SecretChatActor.h b/td/telegram/SecretChatActor.h
index 478b5a4fc..c4de675f7 100644
--- a/td/telegram/SecretChatActor.h
+++ b/td/telegram/SecretChatActor.h
@@ -485,7 +485,7 @@ class SecretChatActor final : public NetQueryCallback {
// 3. Then, we are able to ERASE EVENT just AFTER the CHANGE is SAVED to the binlog.
//
// Actually the change will be saved to binlog too.
- // So we can do it immediatelly after EVENT is SENT to the binlog, because SEND CHANGE and ERASE EVENT will be
+ // So we can do it immediately after EVENT is SENT to the binlog, because SEND CHANGE and ERASE EVENT will be
// ordered automatically.
//
// We will use common ChangesProcessor for all changes (inside one SecretChatActor).
diff --git a/td/telegram/Td.cpp b/td/telegram/Td.cpp
index dc276ae73..b4a273f12 100644
--- a/td/telegram/Td.cpp
+++ b/td/telegram/Td.cpp
@@ -3780,7 +3780,7 @@ void Td::init(Parameters parameters, Result<TdDb::OpenedDatabase> r_opened_datab
//
// 3. During replay of binlog some queries may be sent to other actors. They shouldn't process such events before all
// their binlog events are processed. So actor may receive some old queries. It must be in its actual state in
- // orded to handle them properly.
+ // order to handle them properly.
//
// -- Use send_closure_later, so actors don't even start process binlog events, before all binlog events are sent
@@ -5070,7 +5070,7 @@ void Td::on_request(uint64 id, td_api::setAutosaveSettings &request) {
void Td::on_request(uint64 id, const td_api::clearAutosaveSettingsExceptions &request) {
CHECK_IS_USER();
CREATE_OK_REQUEST_PROMISE();
- autosave_manager_->clear_autosave_settings_excpetions(std::move(promise));
+ autosave_manager_->clear_autosave_settings_exceptions(std::move(promise));
}
void Td::on_request(uint64 id, const td_api::getTopChats &request) {
diff --git a/td/telegram/misc.cpp b/td/telegram/misc.cpp
index e950bbf7d..c543b251d 100644
--- a/td/telegram/misc.cpp
+++ b/td/telegram/misc.cpp
@@ -172,7 +172,7 @@ string strip_empty_characters(string str, size_t max_length, bool strip_rtlo) {
}();
CHECK(can_be_first_inited);
- // replace all occurences of space characters with a space
+ // replace all occurrences of space characters with a space
size_t i = 0;
while (i < str.size() && !can_be_first[static_cast<unsigned char>(str[i])]) {
i++;
diff --git a/tdactor/test/actors_simple.cpp b/tdactor/test/actors_simple.cpp
index fccf23702..d4825064b 100644
--- a/tdactor/test/actors_simple.cpp
+++ b/tdactor/test/actors_simple.cpp
@@ -166,7 +166,7 @@ TEST(Actors, simple_pass_event_arguments) {
// Var-->LvalueRef
// Var-->LvalueRef (Delayed)
- // CE or stange behaviour
+ // CE or strange behaviour
// Var-->Value
sb.clear();
diff --git a/tdnet/td/net/HttpConnectionBase.cpp b/tdnet/td/net/HttpConnectionBase.cpp
index df8a7e132..6d6ba13d9 100644
--- a/tdnet/td/net/HttpConnectionBase.cpp
+++ b/tdnet/td/net/HttpConnectionBase.cpp
@@ -102,7 +102,7 @@ void HttpConnectionBase::loop() {
LOG(DEBUG) << "Can read from the connection";
auto r = fd_.flush_read();
if (r.is_error()) {
- if (!begins_with(r.error().message(), "SSL error {336134278")) { // if error is not yet outputed
+ if (!begins_with(r.error().message(), "SSL error {336134278")) { // if error is not yet outputted
LOG(INFO) << "Receive flush_read error: " << r.error();
}
on_error(Status::Error(r.error().public_message()));
diff --git a/tdutils/td/utils/Hash.h b/tdutils/td/utils/Hash.h
index 58c10a73b..85ad60d28 100644
--- a/tdutils/td/utils/Hash.h
+++ b/tdutils/td/utils/Hash.h
@@ -15,7 +15,7 @@
#include <utility>
namespace td {
-// A simple wrapper for absl::flat_hash_map, std::unordered_map and probably some our implementaion of hash map in
+// A simple wrapper for absl::flat_hash_map, std::unordered_map and probably some our implementation of hash map in
// the future
// We will introduce out own Hashing utility like an absl one.
diff --git a/tdutils/td/utils/ObjectPool.h b/tdutils/td/utils/ObjectPool.h
index 8f6f4c28e..a535bb57c 100644
--- a/tdutils/td/utils/ObjectPool.h
+++ b/tdutils/td/utils/ObjectPool.h
@@ -14,7 +14,7 @@
#include <utility>
namespace td {
-// It is draft object pool implementaion
+// It is draft object pool implementation
//
// Compared with std::shared_ptr:
// + WeakPtr are much faster. Just pointer copy. No barriers, no atomics.
diff --git a/tdutils/td/utils/filesystem.h b/tdutils/td/utils/filesystem.h
index f036674f7..dd48bff48 100644
--- a/tdutils/td/utils/filesystem.h
+++ b/tdutils/td/utils/filesystem.h
@@ -28,7 +28,7 @@ Status write_file(CSlice to, Slice data, WriteFileOptions options = {}) TD_WARN_
string clean_filename(CSlice name);
-// writes data to file and ensures that the file is either fully overriden, or is left intact
+// writes data to file and ensures that the file is either fully overridden, or is left intact
// uses path_tmp to temporary store data, then calls rename
Status atomic_write_file(CSlice path, Slice data, CSlice path_tmp = {});
diff --git a/tdutils/td/utils/port/SocketFd.cpp b/tdutils/td/utils/port/SocketFd.cpp
index 68c62ad11..550a7caae 100644
--- a/tdutils/td/utils/port/SocketFd.cpp
+++ b/tdutils/td/utils/port/SocketFd.cpp
@@ -578,7 +578,7 @@ Status get_socket_pending_error(const NativeFd &fd, WSAOVERLAPPED *overlapped, S
DWORD flags = 0;
BOOL success = WSAGetOverlappedResult(fd.socket(), overlapped, &num_bytes, false, &flags);
if (success) {
- LOG(ERROR) << "WSAGetOverlappedResult succeded after " << iocp_error;
+ LOG(ERROR) << "WSAGetOverlappedResult succeeded after " << iocp_error;
return iocp_error;
}
return OS_SOCKET_ERROR(PSLICE() << "Error on " << fd);