aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRoj <rojvv@icloud.com>2026-04-06 18:55:17 +0300
committerlevlam <levlam@telegram.org>2026-04-09 15:20:20 +0300
commitaea46d7b1413c663b88243cbf398401d2c27738d (patch)
tree6de3abf6edc5452332a3aa0ff25f5cedaa55ea47
parent6b82cc8323154a74857e21798cd48c10f7c9ff67 (diff)
Fix typos.
-rw-r--r--CHANGELOG.md2
-rw-r--r--benchmark/bench_log.cpp2
-rw-r--r--example/uwp/app/Properties/Default.rd.xml2
-rw-r--r--td/generate/scheme/td_api.tl12
-rw-r--r--td/telegram/GroupCallManager.cpp2
-rw-r--r--td/telegram/MessageReactor.cpp2
-rw-r--r--td/telegram/PollManager.cpp2
-rw-r--r--td/telegram/QueryCombiner.cpp2
-rw-r--r--tde2e/td/e2e/Call.cpp10
-rw-r--r--tde2e/td/e2e/Call.h4
-rw-r--r--tdutils/td/utils/Closure.h2
11 files changed, 21 insertions, 21 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f590b3ef6..cb6799446 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -463,7 +463,7 @@ Changes in 1.7.0 (28 Nov 2020):
call library versions.
* Added support for multiple pinned messages and the ability to pin messages in private chats:
- Added the ability to pin messages in all private chats.
- - Added the ability to pin mutiple messages in all chats.
+ - Added the ability to pin multiple messages in all chats.
- Added the field `is_pinned` to the class `message`.
- Added the update `updateMessageIsPinned`.
- Added the parameter `only_for_self` to the method `pinChatMessage`, allowing to pin messages in private chats for
diff --git a/benchmark/bench_log.cpp b/benchmark/bench_log.cpp
index fc4ff544c..506c60392 100644
--- a/benchmark/bench_log.cpp
+++ b/benchmark/bench_log.cpp
@@ -26,7 +26,7 @@ std::string create_tmp_file() {
char file_name[] = "largefileXXXXXX";
int fd = mkstemp(file_name);
if (fd == -1) {
- perror("Can't cretate temporary file");
+ perror("Can't create temporary file");
}
CHECK(fd != -1);
diff --git a/example/uwp/app/Properties/Default.rd.xml b/example/uwp/app/Properties/Default.rd.xml
index 479eb7669..8fee666b9 100644
--- a/example/uwp/app/Properties/Default.rd.xml
+++ b/example/uwp/app/Properties/Default.rd.xml
@@ -12,7 +12,7 @@
<TypeInstantiation Name="App1.AppClass" Arguments="System.Int32" Activate="Required Public" />
Using the Namespace directive to apply reflection policy to all the types in a particular namespace
- <Namespace Name="DataClasses.ViewModels" Seralize="All" />
+ <Namespace Name="DataClasses.ViewModels" Serialize="All" />
-->
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl
index 6adba0866..a653ae206 100644
--- a/td/generate/scheme/td_api.tl
+++ b/td/generate/scheme/td_api.tl
@@ -119,7 +119,7 @@ formattedText text:string entities:vector<textEntity> = FormattedText;
//@description Represents a change of a text @offset Offset of the entity, in UTF-16 code units @length Length of the entity, in UTF-16 code units @type Type of the entity
diffEntity offset:int32 length:int32 type:DiffEntityType = DiffEntity;
-//@description A text with some changes highlighted @text The text @entities Entities describing changes in the text. Entities doesn't mutually intersect with each other
+//@description A text with some changes highlighted @text The text @entities Entities describing changes in the text. Entities don't mutually intersect with each other
diffText text:string entities:vector<diffEntity> = DiffText;
//@description A text fixed using fixTextWithAi @text The resulting text @diff_text Changes made to the original text
@@ -182,7 +182,7 @@ authorizationStateWaitCode code_info:authenticationCodeInfo = AuthorizationState
//@description The user needs to confirm authorization on another logged in device by scanning a QR code with the provided link @link A tg:// URL for the QR code. The link will be updated frequently
authorizationStateWaitOtherDeviceConfirmation link:string = AuthorizationState;
-//@description The user is unregistered and need to accept terms of service and enter their first name and last name to finish registration. Call registerUser to accept the terms of service and provide the data @terms_of_service Telegram terms of service
+//@description The user is unregistered and needs to accept terms of service and enter their first name and last name to finish registration. Call registerUser to accept the terms of service and provide the data @terms_of_service Telegram terms of service
authorizationStateWaitRegistration terms_of_service:termsOfService = AuthorizationState;
//@description The user has been authorized, but needs to enter a 2-step verification password to start using the application.
@@ -1355,7 +1355,7 @@ upgradedGiftOriginCraft = UpgradedGiftOrigin;
//@class UpgradedGiftAttributeRarity @description Describes rarity of an upgraded gift attribute
-//@description The rarity is represented as the numeric frequence of the model
+//@description The rarity is represented as the numeric frequency of the model
//@per_mille The number of upgraded gifts that receive this attribute for each 1000 gifts upgraded; if 0, then it can be shown as "<0.1%"
upgradedGiftAttributeRarityPerMille per_mille:int32 = UpgradedGiftAttributeRarity;
@@ -2994,7 +2994,7 @@ sponsoredChat unique_id:int53 chat_id:int53 sponsor_info:string additional_info:
//@description Contains a list of sponsored chats @chats List of sponsored chats
sponsoredChats chats:vector<sponsoredChat> = SponsoredChats;
-//@description Describes an advertisent to be shown while a video from a message is watched
+//@description Describes an advertisement to be shown while a video from a message is watched
//@unique_id Unique identifier of this result
//@text Text of the advertisement
//@min_display_duration The minimum amount of time the advertisement must be displayed before it can be hidden by the user, in seconds
@@ -5669,7 +5669,7 @@ inputMessageForwarded from_chat_id:int53 message_id:int53 in_game_share:Bool rep
//@can_get_message_thread True, if information about the message thread is available through getMessageThread and getMessageThreadHistory
//@can_get_read_date True, if read date of the message can be received through getMessageReadDate
//@can_get_statistics True, if message statistics are available through getMessageStatistics and message forwards can be received using getMessagePublicForwards
-//@can_get_video_advertisements True, if advertisements for video of the message can be received though getVideoMessageAdvertisements
+//@can_get_video_advertisements True, if advertisements for video of the message can be received through getVideoMessageAdvertisements
//@can_get_viewers True, if chat members already viewed the message can be received through getMessageViewers
//@can_mark_tasks_as_done True, if tasks can be marked as done or not done in the message's checklist using markChecklistTasksAsDone if the current user has Telegram Premium subscription
//@can_recognize_speech True, if speech can be recognized for the message through recognizeSpeech
@@ -14492,7 +14492,7 @@ getUpgradedGiftValueInfo name:string = UpgradedGiftValueInfo;
//@password The 2-step verification password of the current user
getUpgradedGiftWithdrawalUrl received_gift_id:string password:string = HttpUrl;
-//@description Returns promotional anumation for upgraded gifts
+//@description Returns promotional animation for upgraded gifts
getUpgradedGiftsPromotionalAnimation = Animation;
//@description Changes resale price of a unique gift owned by the current user
diff --git a/td/telegram/GroupCallManager.cpp b/td/telegram/GroupCallManager.cpp
index eb9313f13..a17127760 100644
--- a/td/telegram/GroupCallManager.cpp
+++ b/td/telegram/GroupCallManager.cpp
@@ -3601,7 +3601,7 @@ void GroupCallManager::remove_group_call_spent_stars(InputGroupCallId input_grou
send_update_live_story_top_donors(group_call->group_call_id, group_call_participants);
}
}
- // don't neet to undo updateNewGroupCallPaidReaction
+ // don't need to undo updateNewGroupCallPaidReaction
}
int32 GroupCallManager::add_group_call_message(InputGroupCallId input_group_call_id, GroupCall *group_call,
diff --git a/td/telegram/MessageReactor.cpp b/td/telegram/MessageReactor.cpp
index 54a5835fc..d0ec92ba6 100644
--- a/td/telegram/MessageReactor.cpp
+++ b/td/telegram/MessageReactor.cpp
@@ -117,7 +117,7 @@ void MessageReactor::fix_message_reactors(vector<MessageReactor> &reactors, bool
}
if (reactor.is_me()) {
if (was_me) {
- LOG(ERROR) << "Receive self mutiple times";
+ LOG(ERROR) << "Receive self multiple times";
return true;
}
was_me = true;
diff --git a/td/telegram/PollManager.cpp b/td/telegram/PollManager.cpp
index 5ba755075..852f9679f 100644
--- a/td/telegram/PollManager.cpp
+++ b/td/telegram/PollManager.cpp
@@ -2292,7 +2292,7 @@ void PollManager::on_get_poll_vote(PollId poll_id, DialogId dialog_id, vector<Bu
}
if (options.size() != positions.size()) {
LOG(ERROR) << "Receive updateMessagePollVote from " << dialog_id << " in " << poll_id
- << " with mistmatch option size";
+ << " with mismatch option size";
return;
}
CHECK(td_->auth_manager_->is_bot());
diff --git a/td/telegram/QueryCombiner.cpp b/td/telegram/QueryCombiner.cpp
index a9f7e1ef1..ebd32a831 100644
--- a/td/telegram/QueryCombiner.cpp
+++ b/td/telegram/QueryCombiner.cpp
@@ -24,7 +24,7 @@ void QueryCombiner::add_query(int64 query_id, Promise<Promise<Unit>> &&send_quer
if (promise) {
query.promises.push_back(std::move(promise));
} else if (min_delay_ > 0 && !query.is_sent) {
- // if there is no promise, then noone waits for response
+ // if there is no promise, then no one waits for response
// we can delay query to not exceed any flood limit
if (query.send_query) {
// the query is already delayed
diff --git a/tde2e/td/e2e/Call.cpp b/tde2e/td/e2e/Call.cpp
index fd632a201..209eab828 100644
--- a/tde2e/td/e2e/Call.cpp
+++ b/tde2e/td/e2e/Call.cpp
@@ -62,17 +62,17 @@ std::string lambda_serialize(F &&f) {
return td::serialize(LambdaStorer<F>{std::forward<F>(f)});
}
-void CallVerificationChain::on_new_main_block(const Blockchain &blockhain) {
+void CallVerificationChain::on_new_main_block(const Blockchain &blockchain) {
state_ = Commit;
- CHECK(blockhain.get_height() > height_);
- height_ = td::narrow_cast<td::int32>(blockhain.get_height());
- last_block_hash_ = blockhain.last_block_hash_;
+ CHECK(blockchain.get_height() > height_);
+ height_ = td::narrow_cast<td::int32>(blockchain.get_height());
+ last_block_hash_ = blockchain.last_block_hash_;
verification_state_ = {};
verification_state_.height = height_;
verification_words_ =
CallVerificationWords{height_, Mnemonic::generate_verification_words(last_block_hash_.as_slice())};
- auto &group_state = *blockhain.state_.group_state_;
+ auto &group_state = *blockchain.state_.group_state_;
committed_ = {};
revealed_ = {};
diff --git a/tde2e/td/e2e/Call.h b/tde2e/td/e2e/Call.h
index ace88e605..9ca132ad3 100644
--- a/tde2e/td/e2e/Call.h
+++ b/tde2e/td/e2e/Call.h
@@ -35,7 +35,7 @@ struct CallVerificationChain {
Reveal,
};
State get_state() const;
- void on_new_main_block(const Blockchain &blockhain);
+ void on_new_main_block(const Blockchain &blockchain);
td::Status try_apply_block(td::Slice message);
std::string to_short_string(e2e::object_ptr<e2e::e2e_chain_GroupBroadcast> &broadcast);
@@ -139,7 +139,7 @@ class CallEncryption {
class CallVerification {
public:
static CallVerification create(td::int64 user_id, PrivateKey private_key, const Blockchain &blockchain);
- void on_new_main_block(const Blockchain &blockhain);
+ void on_new_main_block(const Blockchain &blockchain);
CallVerificationState get_verification_state() const;
std::vector<std::string> pull_outbound_messages();
CallVerificationWords get_verification_words() const;
diff --git a/tdutils/td/utils/Closure.h b/tdutils/td/utils/Closure.h
index 19e48efeb..f4fa3566a 100644
--- a/tdutils/td/utils/Closure.h
+++ b/tdutils/td/utils/Closure.h
@@ -46,7 +46,7 @@
// Tmp->Ref + / move->+
// Var->Val copy / copy->move
// Var->CnstRef + / copy->
-// Var->Ref + / copy->+ // khm. It will complile, but won't work
+// Var->Ref + / copy->+ // khm. It will compile, but won't work
//
// So I will use common idiom: forward references
// If delay is needed, just std::forward data to temporary storage, and std::move them when call is executed.