[Telegram] Core

xF2 Add-on [Telegram] Core 2.0.4.1

No permission to download
Compatible XF Versions
  1. 2.1
  2. 2.2
Plugin provides the ability to log in via Telegram and basic code events for implementing bots with XF.
By default, plugin implements two ways for authenticating: default Telegram OAuth Button and "dialog with bot" (for cases when button doesn't displayed because user lives in country with censorship (hello from Russia)).

1580580398644.png


For using Telegram as authentication provider, we need create bot.
  1. Open the Telegram Client and find @BotFather user.
  2. Press button "Start" in window bottom.
  3. Send the command /newbot for starting the process.
  4. Follow the instructions which will come in response in all your actions.
  5. In reply, after input bot username, you receive your HTTP access token. Do not show it [token] anyone! It important!
  6. For opportunity use bot as authentication provider, we need say @BotFather our domain where our forum is running. For this, you need use command /setdomain.
    Domain should be sended without protocol and URI parts! For example, if your forum is hosted in https://example.com/forum, you need send only example.com!
  7. If you want, you can change user avatar (/setuserpic) or change user viewable name (/setname). Note you can't change bot username (starts always with @ and ends on bot). If you realized the selected username you don't like, it's time recreate bot!
  8. Open the ACP, in Connected accounts find Telegram item and open settings. Copy HTTP access token from BotFather and Save.
  9. (optional) In Telegram options (Setup → Options → Telegram) enable the webhook update method for receiving all updates from Telegram.
Now, you can start the test authentication possibility with Telegram!
If you enabled webhook and uses CloudFlare or any CDN proxy, don't forget add Telegram IP ranges in whitelist. They are presented on the official Telegram site in documentation.

The project source code is hosted on GitHub. I am happy accept your PR or review issues.
I spent my free time developing this addon, and will be happy, if you donate me some money on coffee.
  • firefox_2018-05-02_12-20-21.png
    firefox_2018-05-02_12-20-21.png
    475.6 KB · Views: 178
  • firefox_2018-05-02_12-21-34.png
    firefox_2018-05-02_12-21-34.png
    8.4 KB · Views: 132
Author
Admin
Size
144.2 KB
Extension
zip
Downloads
16
Views
2,229
First release
Last update

More resources from Admin

Latest updates

  1. Updated to 2.0.4.1

    Full change list Changed Column type for id in users table is changed to BigInt for supporting...
  2. Updated to 2.0.4

    Implemented our own \XF::asVisitor() method wrapper. It also changes the active language and...
  3. 2.0.3

    Updated

Similar resources

[BS] Telegram Admin
Connect your forum with Telegram.
[KL] Telegram Bot (for NSF) AnimeHaxor
Send user alerts via telegram bot messages.
[tl] Telegram Integration Admin
Support telegram bot, commands, webhook and more...
Shared library files used by all AddonsLab add-ons
731Threads
2,285Messages
63,702Members
soluzionibwgLatest member
Back