Add helper for Peer ID

This commit is contained in:
Wizou 2021-08-16 05:56:39 +02:00
parent cc83944985
commit 2bced387a1

View file

@ -164,4 +164,9 @@
{ {
public static implicit operator InputStickerSetID(StickerSet stickerSet) => new() { id = stickerSet.id, access_hash = stickerSet.access_hash }; public static implicit operator InputStickerSetID(StickerSet stickerSet) => new() { id = stickerSet.id, access_hash = stickerSet.access_hash };
} }
partial class Peer { public abstract int ID { get; } }
partial class PeerUser { public override int ID => user_id; }
partial class PeerChat { public override int ID => chat_id; }
partial class PeerChannel { public override int ID => channel_id; }
} }