I have a private channel in Telegram and a bot that I have added to the channel as a member of the administrators, and the web hook is also set to my php code file.
I plan to manage the membership of the channel members with the Telegram web service and bot, so that only users can become channel members through the bot or, if possible, through a dedicated link. How can I do this with php and Telegram web service?
According to my research, I cannot get the list of members of my channel easily and directly in order to expel unauthorized users from the channel by comparing it with the data in my database.
Please tell me how can I have a join event for my channel and get each user's ID as soon as they join the channel?
Currently, people can join the channel by copying and sharing the channel membership link with each other, which I want to prevent this unauthorized membership.