telegram icon indicating copy to clipboard operation
telegram copied to clipboard

Implement ban/kick bot commands on Telegram bot side for Matrix users

Open MurzNN opened this issue 4 years ago • 3 comments

When we try bridge popular Telegram groups to Matrix via bot, very often group moderators refuse to do this, because they will have no functions for ban/kick Matrix users from Telegram side, and they don't want to use both clients (Matrix and Telegram) to fully moderate group.

For solve this problem, will be good to implement ban/kick commands on Telegram Bot side, that will allow moderation commands for Matrix users from Telegram side.

MurzNN avatar Aug 20 '19 08:08 MurzNN

Here is similar feature request for Slack bridge https://github.com/matrix-org/matrix-appservice-slack/issues/116 and proposed solution is /mx-ban command

MurzNN avatar Oct 10 '19 07:10 MurzNN

There could be /mxlist command to list non-Telegram users in channel and /mxkick which could kick replied message author or use mxid to do so. ++

JuniorJPDJ avatar Jan 19 '21 18:01 JuniorJPDJ

I believe #819 provides an elegant solution to this issue. The fact that it does not rely on printing a list of non-Telegram users in the channel makes it very easy to use (if I am getting this correctly, /mxban as sole content of a Telegram reply to a message forwarded by the bot and originally sent by the user to ban).

why-not-try-calmer avatar Aug 04 '22 22:08 why-not-try-calmer

@tulir Hey mind to add a comment here? It's very much frowned upon to close PRs without explaining the author why, no matter how much you disagree with the PR. I am not the author and I have my own theory as to why this won't work as is but still: you might have things to say that will help this feature land eventually in a later, more acceptable PR.

why-not-try-calmer avatar Aug 14 '22 14:08 why-not-try-calmer

@why-not-try-calmer the issue is closed because an appropriate pull commit has been pushed, tulir mentioned the commit in the close message. I suppose that's a sufficient explanation.

maltee1 avatar Aug 14 '22 15:08 maltee1

@maltee1 My bad, the mobile version of GitHub had the commit collapsed for some reason. Thanks a lot! Also side question since I could not infer that from looking at your GitHub Actions: when is the commit due for staging and making it into the bot offered under https://t2bot.io/telegram/?

why-not-try-calmer avatar Aug 15 '22 08:08 why-not-try-calmer

if https://github.com/t2bot/mautrix-telegram is what t2bot is using, then it's massively outdated and much older than even the latest release of mautrix/telegram. I suggest you ask at t2bot. As for when this will be part of a release, there is no release schedule and I suppose tulir doesn't know himself until shortly before ;)

maltee1 avatar Aug 15 '22 09:08 maltee1