dexif / telegram
Telegram login and notifications for Flarum
Requires
- php: ^8.3
- flarum/core: ^2.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Based on the original extension by Flagrow, with improvements from Nodeloc.
This extension adds a "Log in with Telegram" button that uses the new Telegram Login widget and add an option to receive notifications via Telegram as well.
Requirements
- Flarum 2.0+
- PHP 8.3+
Installation
composer require dexif/telegram
Updating
If you are migrating from nodeloc/telegram, replace the package (the extension ID changes to dexif-telegram, so re-enter the bot settings and enable the extension again):
composer remove nodeloc/telegram composer require dexif/telegram
Otherwise:
composer update dexif/telegram php flarum migrate php flarum cache:clear
Configuration
Follow Telegram instructions to create a bot for the login widget.
Then copy the Bot Username and Bot Token to the extension settings. The username and token must belong to the same bot.
Don't forget to bind your forum domain to the bot with the /setdomain command in @BotFather, otherwise the widget will show "Bot domain invalid".
Existing users can link their Telegram account on the Settings page.
If you check Enable Notifications, the login widget will ask for permission for the bot to message the user and an additional Telegram column will appear in the user's notification settings. Notifications are sent through the queue and use the plain-text version of the notification e-mail.
Support our work
We prefer to keep our work available to everyone.
Security
If you discover a security vulnerability within Telegram login and notifications, please send an email to security@spitsyn.net. All security vulnerabilities will be promptly addressed.
Please include as many details as possible. You can use php flarum info to get the PHP, Flarum and extension versions installed.