mirror of
https://github.com/Syping/dtranslatebot.git
synced 2026-04-01 21:30:40 +02:00
added message splitting
This commit is contained in:
parent
06dec819ff
commit
7700bd7b26
4 changed files with 68 additions and 17 deletions
|
|
@ -66,7 +66,7 @@ void bot::message_queue::run(bot::settings::settings *settings, bot::submit_queu
|
|||
};
|
||||
|
||||
if (!tr_apiKey.empty())
|
||||
json_body.emplace("apiKey", tr_apiKey);
|
||||
json_body["apiKey"] = tr_apiKey;
|
||||
|
||||
const dpp::http_headers http_headers = {
|
||||
{"Content-Type", "application/json"}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue