mirror of
https://github.com/tdlib/telegram-bot-api
synced 2025-08-28 12:57:53 +00:00
fix spelling
This commit is contained in:
parent
b440ade235
commit
04361155aa
@ -3822,12 +3822,12 @@ void Client::check_chat(Slice chat_id_str, AccessRights access_rights, PromisedQ
|
|||||||
template <class OnSuccess>
|
template <class OnSuccess>
|
||||||
void Client::check_chat_no_fail(Slice chat_id_str, PromisedQueryPtr query, OnSuccess on_success) {
|
void Client::check_chat_no_fail(Slice chat_id_str, PromisedQueryPtr query, OnSuccess on_success) {
|
||||||
if (chat_id_str.empty()) {
|
if (chat_id_str.empty()) {
|
||||||
return fail_query(400, "Bad Request: sedner_chat_id is empty", std::move(query));
|
return fail_query(400, "Bad Request: sender_chat_id is empty", std::move(query));
|
||||||
}
|
}
|
||||||
|
|
||||||
auto r_chat_id = td::to_integer_safe<int64>(chat_id_str);
|
auto r_chat_id = td::to_integer_safe<int64>(chat_id_str);
|
||||||
if (r_chat_id.is_error()) {
|
if (r_chat_id.is_error()) {
|
||||||
return fail_query(400, "Bad Request: sedner_chat_id is not a valid Integer", std::move(query));
|
return fail_query(400, "Bad Request: sender_chat_id is not a valid Integer", std::move(query));
|
||||||
}
|
}
|
||||||
auto chat_id = r_chat_id.move_as_ok();
|
auto chat_id = r_chat_id.move_as_ok();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user