mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2025-12-06 06:52:01 +01:00
Add helper for Peer ID
This commit is contained in:
parent
cc83944985
commit
2bced387a1
|
|
@ -4,7 +4,7 @@
|
|||
partial class InputDocument { public static InputDocumentEmpty Empty => new(); }
|
||||
partial class InputPeer { public static InputPeerEmpty Empty => new(); }
|
||||
partial class InputPhoto { public static InputPhotoEmpty Empty => new(); }
|
||||
partial class InputEncryptedFile{ public static InputEncryptedFileEmpty Empty => new(); }
|
||||
partial class InputEncryptedFile { public static InputEncryptedFileEmpty Empty => new(); }
|
||||
partial class InputStickerSet { public static InputStickerSetEmpty Empty => new(); }
|
||||
partial class InputUser { public static InputUserEmpty Empty => new(); }
|
||||
partial class InputUser { public static InputUserSelf Self => new(); }
|
||||
|
|
@ -164,4 +164,9 @@
|
|||
{
|
||||
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; }
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue