WebViewMessageSent.deserialize constructor
WebViewMessageSent.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory WebViewMessageSent.deserialize(BinaryReader reader) {
// Read [WebViewMessageSent] fields.
final flags = reader.readInt32();
final hasMsgIdField = (flags & 1) != 0;
final msgId = hasMsgIdField
? reader.readObject() as InputBotInlineMessageIDBase
: null;
// Construct [WebViewMessageSent] object.
final returnValue = WebViewMessageSent(
msgId: msgId,
);
// Now return the deserialized [WebViewMessageSent].
return returnValue;
}