I create a private supergroup in Telegram and want to only allow certain telegram userid or phone number to be able to join.
Any unknown telegram userid/number that is not in a whitelist file of the bot will be automatically kicked.
Maybe store a whitelist in a file and run the bot in Cloud Server? There is an API to kick a member https://core.telegram.org/bots/api#kickchatmember but I don't know the webhook to trigger adding member event.
Anyone mind to code a telegram bot script for this? Sorry for inconvenience.