mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-11-05 20:07:03 +01:00
Don't store empty chat_type.
This commit is contained in:
parent
b71e66003e
commit
efaf601e85
@ -1941,7 +1941,9 @@ class Client::JsonInlineQuery : public Jsonable {
|
||||
return "";
|
||||
}
|
||||
}();
|
||||
object("chat_type", chat_type);
|
||||
if (chat_type[0] != '\0') {
|
||||
object("chat_type", chat_type);
|
||||
}
|
||||
}
|
||||
object("query", query_);
|
||||
object("offset", offset_);
|
||||
|
Loading…
Reference in New Issue
Block a user