Don't store empty chat_type.
This commit is contained in:
parent
eeba24eae8
commit
c21b46f42c
1 changed files with 3 additions and 1 deletions
|
|
@ -1941,7 +1941,9 @@ class Client::JsonInlineQuery : public Jsonable {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
}();
|
}();
|
||||||
object("chat_type", chat_type);
|
if (chat_type[0] != '\0') {
|
||||||
|
object("chat_type", chat_type);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
object("query", query_);
|
object("query", query_);
|
||||||
object("offset", offset_);
|
object("offset", offset_);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue