2
0
mirror of https://github.com/tdlib/telegram-bot-api synced 2025-09-01 06:45:42 +00:00

Don't store empty chat_type.

This commit is contained in:
levlam
2021-04-08 17:44:55 +03:00
parent b71e66003e
commit efaf601e85

View File

@@ -1941,8 +1941,10 @@ class Client::JsonInlineQuery : public Jsonable {
return "";
}
}();
if (chat_type[0] != '\0') {
object("chat_type", chat_type);
}
}
object("query", query_);
object("offset", offset_);
}