如何使用 Telegram Bot API 获取 Telegram 频道用户列表 [英] How to get Telegram channel users list with Telegram Bot API

查看:459
本文介绍了如何使用 Telegram Bot API 获取 Telegram 频道用户列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以介绍我如何从我的电报机器人中获取有关用户的信息.想象一下我的 bot 在我的频道中的管理员用户中,我想获取我的频道用户列表或在新用户加入时被注意到.我怎样才能做到这一点.Telegram 的文档非常杂乱无章.到目前为止,我已经看过这些:

Anybody give a starter on how may I get information about users from my telegram bot. Imagine my bot in an admin user in my channel and I want to get my channel user list or to be noticed when a new user joins. How can I do that. Telegram's documents are so unorganized. So far I have looked at these:

但这些都没有真正的帮助.

But none of these really helps.

推荐答案

为了获取用户列表,需要使用电报 API.

In order to get user list, you need to use telegram API.

Telegram API 相当复杂.有一些客户可以更快地完成工作.

Telegram API is fairly complicated. There are some clients which can get the job done much faster.

对于python,有Telethon,获取频道用户的方法是:

For python, there is Telethon, and the method to get channel users is:

get_full_channel.

这篇关于如何使用 Telegram Bot API 获取 Telegram 频道用户列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆