Answer the question
In order to leave comments, you need to log in
How to remove a member from pre-known groups in telegram when he is removed from the portal?
Good day everyone!
"Smoke" now one topic.
There is a self-written portal where I can make any changes to the structure, i.e. I have full access to the server. When deleting users from the portal, it became necessary to also remove this user from the telegram groups to which he is a member. The groups are naturally known. Ie, you press "Delete" and it is deleted in all groups from the list.
The task must be solved within the framework of the toolkit: "PHP-JS". Connection of additional tools and modules is not forbidden. Maybe there are already solutions on the net for this.
In short, I'm looking for any help: links to manuals, ready-made examples.
I have not yet come up with anything other than a bot that will delete such users.
In theory, it can contact the server with some php file that will check the "Deleted" key in the employee table and return some values, based on which the bot will either delete or not.
But then the bot itself must periodically initiate such calls.
But how to make it so that the initiator was the portal?
Many thanks to all sympathetic people and plus to karma.
Answer the question
In order to leave comments, you need to log in
Well, how else, you need to add something like telegram_id to the users table, and when the site user is deleted by API, delete the user with this telegram_id from the telegram groups
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question