聊天API可自动添加和删除成员 [英] Chat API to add and remove members automatically

查看:75
本文介绍了聊天API可自动添加和删除成员的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在和一个使用电报应用程序发送有关足球比赛的投注提示的人一起工作.他希望该群组为私有群组,现在他正在手动添加和删除所有成员.该小组正在发展,现在有300多个成员,这使他的工作更加困难,他想要的是一种自动从小组中添加和删除成员的方法.有没有可以让我做到这一点的api?如果需要,我愿意更改为另一个聊天应用程序.

解决方案

与漫游器API一样,不能可以直接将成员添加到组中,您仍然可以将他们踢出去./p>

但是,使用用户漫游器(MTPROTO客户端)仍然可以实现您的要求.如果要使用PHP,建议您查看 MadelineProto .我将列出您可以使用的方法:

  1. channels.inviteToChannel (适用于超组)
  2. channels.editBanned (适用于超组)

使用这两种方法,您可以轻松实现目标.

I'm working with a guy who uses telegram app to send bet tips on football matches. He wants the group to be private, right now he is adding and removing all members manually. The group is growing and now has more than 300 members which makes his job harder, what he wants is an automatic way of adding and removing members from the group . Is there any api that let me do this? I'm open to change to another chat app if it's needed.

解决方案

As with the bot API, it is NOT possible to add members directly to the group, you can still kick them out.

However what you are asking is still possible by using a user bot (MTPROTO client). If you are going to use PHP, I suggest you look at MadelineProto. I will list the methods you can use:

  1. channels.inviteToChannel (Works with supergroups)
  2. channels.editBanned (Works with supergroups)

Using the two methods you can easily achive your aim.

这篇关于聊天API可自动添加和删除成员的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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