【发布时间】:2017-07-17 06:34:10
【问题描述】:
我想找出加入我的电报频道的新用户的聊天 ID 或用户名,我的电报机器人是其中之一 管理员。
我还想知道我是否可以使用我的机器人管理员获取我频道的用户列表?
假设我在 C# 中使用 NetTelegramBotApi,我尝试了以下代码但没有成功:
if (update.ChannelPost.NewChatMember != null)
{
Console.WriteLine(update.ChannelPost.NewChatMember.Id.ToString());
continue;
}
【问题讨论】:
标签: c# console-application telegram telegram-bot