Skip to content

我想显示电报等频道上的总成员数和在线成员数 #135

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
aoi41 opened this issue Mar 25, 2025 · 3 comments
Open

我想显示电报等频道上的总成员数和在线成员数 #135

aoi41 opened this issue Mar 25, 2025 · 3 comments

Comments

@aoi41
Copy link

aoi41 commented Mar 25, 2025

我需要在电报等频道上显示总会员数和在线会员数,例如“576 名会员,130 名在线”
我该怎么做?我检查了代码,但似乎不支持。

class ChannelInfo {
ChannelInfo({this.status = 0, this.updateDt = 0});
late String channelId;
String? name;
String? portrait;
String? owner;
String? desc;
String? extra;
String? secret;
String? callback;

int status;
int updateDt;
}

@aoi41 aoi41 changed the title I want to show the number of total members and online members on channel like telegram 我想显示电报等频道上的总成员数和在线成员数 Mar 27, 2025
@heavyrain2012
Copy link
Contributor

野火实现的频道更像是微信中的公众号,没有办法获取到在线用户数

@aoi41
Copy link
Author

aoi41 commented Mar 27, 2025

但是可以显示该频道的订阅者总数吗?
还有什么 API 可以直接邀请某些人加入频道吗?

@heavyrain2012
Copy link
Contributor

但是可以显示该频道的订阅者总数吗?
现在没有这个接口,我们稍后会添加一个server api,用来获取频道订阅人数。但接口是查数据库的,不建议高频使用

还有什么 API 可以直接邀请某些人加入频道吗?
server api有给用户订阅频道的接口

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants