Exemple #1
0
 /// <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
     }));
 }
Exemple #2
0
 /// <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
     }));
 }
Exemple #3
0
 public TopChatsCollection(IProtoService protoService, TopChatCategory category, int limit)
 {
     _protoService = protoService;
     _category     = category;
     _limit        = limit;
 }