mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2025-12-06 06:52:01 +01:00
add implicit conversion for Peer (#229)
This commit is contained in:
parent
48a1322452
commit
91a8eab86a
|
|
@ -128,6 +128,7 @@ namespace TL
|
||||||
{
|
{
|
||||||
public abstract long ID { get; }
|
public abstract long ID { get; }
|
||||||
protected internal abstract IPeerInfo UserOrChat(Dictionary<long, User> users, Dictionary<long, ChatBase> chats);
|
protected internal abstract IPeerInfo UserOrChat(Dictionary<long, User> users, Dictionary<long, ChatBase> chats);
|
||||||
|
public static implicit operator long(Peer peer) => peer.ID;
|
||||||
}
|
}
|
||||||
partial class PeerUser
|
partial class PeerUser
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue