some more helpers

This commit is contained in:
Wizou 2021-11-27 02:57:50 +01:00
parent e7b9ea93cd
commit ff796775eb

View file

@ -15,6 +15,8 @@ namespace TL
} }
partial class InputPeer { public static InputPeerSelf Self => new(); } partial class InputPeer { public static InputPeerSelf Self => new(); }
partial class InputPeerUser { public static implicit operator InputUser(InputPeerUser user) => new() { user_id = user.user_id, access_hash = user.access_hash }; }
partial class InputPeerChannel { public static implicit operator InputChannel(InputPeerChannel channel) => new() { channel_id = channel.channel_id, access_hash = channel.access_hash }; }
partial class InputUser { public static InputUserSelf Self => new(); } partial class InputUser { public static InputUserSelf Self => new(); }
partial class InputFileBase partial class InputFileBase
@ -270,6 +272,8 @@ namespace TL
partial class SendMessageGeoLocationAction { public override string ToString() => "selecting a location"; } partial class SendMessageGeoLocationAction { public override string ToString() => "selecting a location"; }
partial class SendMessageGamePlayAction { public override string ToString() => "playing a game"; } partial class SendMessageGamePlayAction { public override string ToString() => "playing a game"; }
partial class SendMessageHistoryImportAction { public override string ToString() => "importing history"; } partial class SendMessageHistoryImportAction { public override string ToString() => "importing history"; }
partial class SendMessageEmojiInteraction { public override string ToString() => "clicking on emoji"; }
partial class SendMessageEmojiInteractionSeen { public override string ToString() => "watching emoji reaction"; }
partial class StickerSet partial class StickerSet
{ {
@ -312,6 +316,10 @@ namespace TL
public override int Timeout => timeout; public override int Timeout => timeout;
} }
partial class ChannelParticipantBase { public virtual bool IsAdmin => false; }
partial class ChannelParticipantCreator { public override bool IsAdmin => true; }
partial class ChannelParticipantAdmin { public override bool IsAdmin => true; }
partial class UpdatesBase partial class UpdatesBase
{ {
public abstract Update[] UpdateList { get; } public abstract Update[] UpdateList { get; }