diff --git a/example/csharp/TdExample.cs b/example/csharp/TdExample.cs index 3cb1949d6..c09b0fb3d 100644 --- a/example/csharp/TdExample.cs +++ b/example/csharp/TdExample.cs @@ -211,7 +211,7 @@ namespace TdExample TdApi.ReplyMarkup replyMarkup = new TdApi.ReplyMarkupInlineKeyboard(new TdApi.InlineKeyboardButton[][] { row, row, row }); TdApi.InputMessageContent content = new TdApi.InputMessageText(new TdApi.FormattedText(message, null), false, true); - _client.Send(new TdApi.SendMessage(chatId, 0, 0, null, replyMarkup, content), _defaultHandler); + _client.Send(new TdApi.SendMessage(chatId, 0, null, null, replyMarkup, content), _defaultHandler); } static void Main() diff --git a/example/java/org/drinkless/tdlib/example/Example.java b/example/java/org/drinkless/tdlib/example/Example.java index ce0ebe113..253485575 100644 --- a/example/java/org/drinkless/tdlib/example/Example.java +++ b/example/java/org/drinkless/tdlib/example/Example.java @@ -294,7 +294,7 @@ public final class Example { TdApi.ReplyMarkup replyMarkup = new TdApi.ReplyMarkupInlineKeyboard(new TdApi.InlineKeyboardButton[][]{row, row, row}); TdApi.InputMessageContent content = new TdApi.InputMessageText(new TdApi.FormattedText(message, null), false, true); - client.send(new TdApi.SendMessage(chatId, 0, 0, null, replyMarkup, content), defaultHandler); + client.send(new TdApi.SendMessage(chatId, 0, null, null, replyMarkup, content), defaultHandler); } public static void main(String[] args) throws InterruptedException { diff --git a/td/generate/DoxygenTlDocumentationGenerator.php b/td/generate/DoxygenTlDocumentationGenerator.php index bb945fd14..fcd70c52e 100644 --- a/td/generate/DoxygenTlDocumentationGenerator.php +++ b/td/generate/DoxygenTlDocumentationGenerator.php @@ -235,7 +235,7 @@ EOT * auto get_me_request = td::td_api::make_object(); * auto message_text = td::td_api::make_object("Hello, world!!!", * td::td_api::array>()); - * auto send_message_request = td::td_api::make_object(chat_id, 0, 0, nullptr, nullptr, + * auto send_message_request = td::td_api::make_object(chat_id, 0, nullptr, nullptr, nullptr, * td::td_api::make_object(std::move(message_text), false, true)); * \\endcode * diff --git a/td/tl/TlObject.h b/td/tl/TlObject.h index c1b363fc9..c83e40a27 100644 --- a/td/tl/TlObject.h +++ b/td/tl/TlObject.h @@ -190,7 +190,7 @@ using tl_object_ptr = tl::unique_ptr; * auto get_me_request = td::make_tl_object(); * auto message_text = td::make_tl_object("Hello, world!!!", * td::td_api::array>()); - * auto send_message_request = td::make_tl_object(chat_id, 0, 0, nullptr, nullptr, + * auto send_message_request = td::make_tl_object(chat_id, 0, nullptr, nullptr, nullptr, * td::make_tl_object(std::move(message_text), false, true)); * \endcode * diff --git a/test/online.cpp b/test/online.cpp index de7afa8a6..f34c8e778 100644 --- a/test/online.cpp +++ b/test/online.cpp @@ -333,7 +333,7 @@ class UploadFile : public Task { write_file(content_path_, content_).ensure(); send_query(td::make_tl_object( - chat_id_, 0, 0, nullptr, nullptr, + chat_id_, 0, nullptr, nullptr, nullptr, td::make_tl_object( td::make_tl_object(content_path_), nullptr, true, td::make_tl_object("tag", td::Auto()))), diff --git a/test/tdclient.cpp b/test/tdclient.cpp index a608c7559..1917bf2e9 100644 --- a/test/tdclient.cpp +++ b/test/tdclient.cpp @@ -311,7 +311,7 @@ class SetUsername final : public TestClinetTask { CHECK(res->get_id() == td::td_api::chat::ID); auto chat = td::move_tl_object_as(res); this->send_query(td::make_tl_object( - chat->id_, 0, 0, nullptr, nullptr, + chat->id_, 0, nullptr, nullptr, nullptr, td::make_tl_object( td::make_tl_object(PSTRING() << tag_ << " INIT", td::Auto()), false, false)), @@ -382,7 +382,7 @@ class TestA final : public TestClinetTask { for (int i = 0; i < 20; i++) { this->send_query( td::make_tl_object( - chat->id_, 0, 0, nullptr, nullptr, + chat->id_, 0, nullptr, nullptr, nullptr, td::make_tl_object( td::make_tl_object(PSTRING() << tag_ << " " << (1000 + i), td::Auto()), false, false)), @@ -431,7 +431,7 @@ class TestSecretChat final : public TestClinetTask { for (int i = 0; i < 20; i++) { send_query( td::make_tl_object( - chat_id_, 0, 0, nullptr, nullptr, + chat_id_, 0, nullptr, nullptr, nullptr, td::make_tl_object( td::make_tl_object(PSTRING() << tag_ << " " << (1000 + i), td::Auto()), false, false)), @@ -495,7 +495,7 @@ class TestFileGenerated final : public TestClinetTask { file.flush_write().ensure(); // important file.close(); send_query(td::make_tl_object( - chat_id_, 0, 0, nullptr, nullptr, + chat_id_, 0, nullptr, nullptr, nullptr, td::make_tl_object( td::make_tl_object(file_path, "square", 0), td::make_tl_object( @@ -504,7 +504,7 @@ class TestFileGenerated final : public TestClinetTask { [](auto res) { check_td_error(res); }); send_query(td::make_tl_object( - chat_id_, 0, 0, nullptr, nullptr, + chat_id_, 0, nullptr, nullptr, nullptr, td::make_tl_object( td::make_tl_object(file_path, "square", 0), nullptr, true, td::make_tl_object(tag_, td::Auto()))), @@ -612,7 +612,7 @@ class CheckTestC final : public TestClinetTask { void one_file() { send_query(td::make_tl_object( - chat_id_, 0, 0, nullptr, nullptr, + chat_id_, 0, nullptr, nullptr, nullptr, td::make_tl_object( td::make_tl_object(PSTRING() << tag_ << " ONE_FILE", td::Auto()), false, false)),