强制订阅通道以使用bot [aiogram]
我有一个简单的聊天机器人,其中包含用于接收用户消息并回答他们的aigraph。我想确保用户在使用我的机器人之前订阅特定频道。我该如何实施?
I have a simple chat-bot writed with aiogram for receiving messages from users and answering to them. I want to make sure that user is subscribed to a particular channel before he can use my bot. How can I implement that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 getchatmember 方法,然后检查状态>状态> < a href =“ https://core.telegram.org/bots/api#chatmember” rel =“ nofollow noreferrer”> chatmember
Use getChatMember method and then check
status
field of the ChatMember