mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2025-12-06 06:52:01 +01:00
renaming 2 files
This commit is contained in:
parent
f3ca76bb8f
commit
fc08140995
|
|
@ -9,7 +9,7 @@ using WTelegram;
|
|||
|
||||
namespace TL
|
||||
{
|
||||
public static class Extensions
|
||||
public static class Services
|
||||
{
|
||||
public sealed partial class CollectorPeer(IDictionary<long, User> _users, IDictionary<long, ChatBase> _chats) : Peer, IPeerCollector
|
||||
{
|
||||
|
|
@ -104,13 +104,13 @@ namespace TL
|
|||
public static void CollectUsersChats(this IPeerResolver structure, IDictionary<long, User> users, IDictionary<long, ChatBase> chats)
|
||||
=> structure.UserOrChat(new CollectorPeer(users, chats));
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
[EditorBrowsable(EditorBrowsableState.Never)][Obsolete("The method you're looking for is Messages_GetAllChats", true)]
|
||||
public static Task<Messages_Chats> Messages_GetChats(this Client _) => throw new WTException("The method you're looking for is Messages_GetAllChats");
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
[EditorBrowsable(EditorBrowsableState.Never)][Obsolete("The method you're looking for is Messages_GetAllChats", true)]
|
||||
public static Task<Messages_Chats> Channels_GetChannels(this Client _) => throw new WTException("The method you're looking for is Messages_GetAllChats");
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
[EditorBrowsable(EditorBrowsableState.Never)][Obsolete("The method you're looking for is Messages_GetAllDialogs", true)]
|
||||
public static Task<UserBase[]> Users_GetUsers(this Client _) => throw new WTException("The method you're looking for is Messages_GetAllDialogs");
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
[EditorBrowsable(EditorBrowsableState.Never)][Obsolete("If you want to get all messages from a chat, use method Messages_GetHistory", true)]
|
||||
public static Task<Messages_MessagesBase> Messages_GetMessages(this Client _) => throw new WTException("If you want to get all messages from a chat, use method Messages_GetHistory");
|
||||
}
|
||||
|
||||
|
|
@ -56,7 +56,7 @@ namespace WTelegram
|
|||
{
|
||||
_client = client;
|
||||
_onUpdate = onUpdate;
|
||||
_collector = collector ?? new Extensions.CollectorPeer(Users = [], Chats = []);
|
||||
_collector = collector ?? new Services.CollectorPeer(Users = [], Chats = []);
|
||||
|
||||
if (state == null)
|
||||
_local = new() { [L_SEQ] = new() { access_hash = UndefinedSeqDate }, [L_QTS] = new(), [L_PTS] = new() };
|
||||
|
|
|
|||
Loading…
Reference in a new issue