diff options
| author | levlam <levlam@telegram.org> | 2026-06-11 14:17:54 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2026-06-11 14:17:54 +0300 |
| commit | f0658f9572304eb1c281831d067dc018b50bb6bb (patch) | |
| tree | 83a4a80ff83620f7c8ae8f0b2f4b43c192564970 | |
| parent | bfd9d77a8ac880afac999e1e85669ec31db0a425 (diff) | |
Increase maximum update size.
| -rw-r--r-- | telegram-bot-api/Client.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index a2ef646..068a505 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -17711,7 +17711,7 @@ void Client::add_update_impl(UpdateType update_type, const td::VirtuallyJsonable send_closure(stat_actor_, &BotStatActor::add_event<ServerBotStat::Update>, ServerBotStat::Update{}, td::Time::now()); - const size_t BUF_SIZE = 1 << 16; + const size_t BUF_SIZE = 1 << 18; auto buf = td::StackAllocator::alloc(BUF_SIZE); td::JsonBuilder jb(td::StringBuilder(buf.as_slice(), true)); jb.enter_value() << get_update_type_name(update_type); |
