I'm trying to send message and getting this
message: "Failed to parse JSON object as TDLib request: Unknown class "InputMessageText""
This is because in enum InputMessageContent you use #[serde(rename(deserialize = "inputMessageAudio"))]
instead of renaming it for both -> deserialize/serialize.
I think it must be like this
#[serde(rename = "inputMessageAudio")] or #[serde(rename(deserialize = "inputMessageAudio", serialize = "inputMessageAudio"))].
This is actual for all variants of InputMessageContent
I'm trying to send message and getting this
message: "Failed to parse JSON object as TDLib request: Unknown class "InputMessageText""
This is because in
enum InputMessageContent
you use#[serde(rename(deserialize = "inputMessageAudio"))]
instead of renaming it for both -> deserialize/serialize.I think it must be like this
#[serde(rename = "inputMessageAudio")]
or#[serde(rename(deserialize = "inputMessageAudio", serialize = "inputMessageAudio"))]
.This is actual for all variants of
InputMessageContent