MessagesEditChatPhoto.deserialize constructor

MessagesEditChatPhoto.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory MessagesEditChatPhoto.deserialize(BinaryReader reader) {
  // Read [MessagesEditChatPhoto] fields.
  final chatId = reader.readInt64();
  final photo = reader.readObject() as InputChatPhotoBase;

  // Construct [MessagesEditChatPhoto] object.
  final returnValue = MessagesEditChatPhoto(chatId: chatId, photo: photo);

  // Now return the deserialized [MessagesEditChatPhoto].
  return returnValue;
}