ChannelsSetStickers.deserialize constructor

ChannelsSetStickers.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory ChannelsSetStickers.deserialize(BinaryReader reader) {
  // Read [ChannelsSetStickers] fields.
  final channel = reader.readObject() as InputChannelBase;
  final stickerset = reader.readObject() as InputStickerSetBase;

  // Construct [ChannelsSetStickers] object.
  final returnValue = ChannelsSetStickers(
    channel: channel,
    stickerset: stickerset,
  );

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