I have a private channel on telegram in which I have added my bot. I am able to create unique links for each user to join the channel. Now I want to know userID
of the user who have joined the channel. The reason for me to get userID
is because the channel is subscription based and I would want to remove the user once their subscription ends and they don’t resubscribe.
Currently I am using Go for writing the code. I have used https://github.com/go-telegram-bot-api/telegram-bot-api package. I am able to create an invite link for each user but cannot get userID when they join the group.
I have read few questions on stackoverflow regarding the same. Most of it suggested to use /getUpdates
API but I have not found any luck using that so now I am not very sure how to do it. I have seen few packages in python where userID
is been fetched but nothing of that kind is found with the package that I am using.