Add BotFather
/newbot
nameof_bot
Save the API key somewhere you will need to put it in nextcloud along with your bot username in the social login section.
Add your bot username and change the authorization type to “Redirect to URL”
Enter your nextcloud domain followed by:
/apps/sociallogin/oauth/telegram
https://cloud.nextcloud.com/apps/sociallogin/oauth/telegram
Login with Telegram
Go back to BotFather
/mybots
Select your bot
/setdomain
cloud.nextcloud.com
Go to your nextcloud settings social login admin page.
Enter your Telegram bot name
nameof_bot
and your API key that you copied when you created your bot
And that’s it