/// <summary> /// Removes a chat from the list of frequently used chats. Supported only if the chat info database is enabled /// </summary> public static Task <Ok> RemoveTopChatAsync( this Client client, TopChatCategory category = default, long chatId = default) { return(client.ExecuteAsync(new RemoveTopChat { Category = category, ChatId = chatId })); }
/// <summary> /// Returns a list of frequently used chats. Supported only if the chat info database is enabled /// </summary> public static Task <Chats> GetTopChatsAsync( this Client client, TopChatCategory category = default, int limit = default) { return(client.ExecuteAsync(new GetTopChats { Category = category, Limit = limit })); }
public TopChatsCollection(IProtoService protoService, TopChatCategory category, int limit) { _protoService = protoService; _category = category; _limit = limit; }