/// <summary>
 /// Returns information about members or banned users in a supergroup or channel. Can be used only if SupergroupFullInfo.can_get_members == true; additionally, administrator privileges may be required for some filters
 /// </summary>
 public static Task <ChatMembers> GetSupergroupMembersAsync(
     this Client client, int supergroupId = default, SupergroupMembersFilter filter = default, int offset = default, int limit = default)
 {
     return(client.ExecuteAsync(new GetSupergroupMembers
     {
         SupergroupId = supergroupId, Filter = filter, Offset = offset, Limit = limit
     }));
 }
        public SupergroupMembersViewModelBase(IProtoService protoService, ICacheService cacheService, ISettingsService settingsService, IEventAggregator aggregator, SupergroupMembersFilter filter, Func <string, SupergroupMembersFilter> search)
            : base(protoService, cacheService, settingsService, aggregator)
        {
            _filter = filter;
            _find   = search;

            Members = new SearchCollection <ChatMember, ChatMemberCollection>(SetItems, new ChatMemberHandler());
        }
Example #3
0
 public SupergroupMembersViewModelBase(IProtoService protoService, ICacheService cacheService, IEventAggregator aggregator, SupergroupMembersFilter filter, Func <string, SupergroupMembersFilter> search)
     : base(protoService, cacheService, aggregator)
 {
     _filter = filter;
     _find   = search;
 }