InputKeyboardButtonUserProfile.deserialize constructor
InputKeyboardButtonUserProfile.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory InputKeyboardButtonUserProfile.deserialize(BinaryReader reader) {
// Read [InputKeyboardButtonUserProfile] fields.
final text = reader.readString();
final userId = reader.readObject() as InputUserBase;
// Construct [InputKeyboardButtonUserProfile] object.
final returnValue = InputKeyboardButtonUserProfile(
text: text,
userId: userId,
);
// Now return the deserialized [InputKeyboardButtonUserProfile].
return returnValue;
}