[Telegram] Core 2.0.4.1

XF 2.1 / 2.2 [Telegram] Core 2.0.4.1

Add-on xenforo 2

Ressources et modules complémentaires pour XenForo 2

Styles xenforo 2

Styles / Thèmes et apparence pour xenforo 2

Templates xenforo 2

Codes pour modifier les templates sur xenforo 2

Section Premium

Add-on et Styles pour membre Premium
[Telegram] Core 2.0.4.1

XF 2.1 / 2.2 [Telegram] Core 2.0.4.1

Catégorie Catégorie Add-Ons
Titre du sujet Titre du sujet [Telegram] Core 2.0.4.1
Auteur de la discussion Auteur de la discussion laurent68
Date de début Date de début
Réponses Réponses 6
Affichages Affichages 518
Réaction Réaction 1
Dernier message par Dernier message par sariettte

laurent68

Fondateur

Staff
fondateur
Réputation: 100%
Discussions
4 645
Messages
12 051
Solutions
81
J'aime
7 608
Points
198
Github link: https://github.com/XF-Telegram/Core
Adds the ability to log in via the Telegram Login Widget. Due to the features of the latter, instead of an instant redirect to Telegram, a page opens with a suggestion to click on the authorization button.

2278
.png


2277


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.

Demonstration :


Télécharger V2.0.3 :
Vous devez répondre avant de pouvoir voir le contenu des données cachées.
Version 2.0.4 :

Implemented our own \XF::asVisitor() method wrapper. It also changes the active language and style (if required).
This should fix bug when authorization message is sended on default forum language. Now addon respects the selected user language anywhere this is possible.

Télécharger V2.0.4 :
Vous devez répondre avant de pouvoir voir le contenu des données cachées.
Version 2.0.4.1 Full change list

Changed :

Column type for id in users table is changed to BigInt for supporting Bot API v5.4. This change should fix next error when users try log in :

Code:
ErrorException: Fatal Error: Uncaught XF\PrintableException: Please enter a number that is no more than 4294967295.
in /src/XF/Mvc/Entity/Entity.php:1216

Stack trace:
#0 /addons/SModders/TelegramCore/ConnectedAccount/Provider/Telegram.php(105): XF\Mvc\Entity\Entity->save()
#1 /connected_account.php(59): SModders\TelegramCore\ConnectedAccount\Provider\Telegram->requestProviderToken(Object(XF\ConnectedAccount\Storage\StorageState), Object(XF\Http\Request), NULL, false)
#2 {main} thrown src/XF/Mvc/Entity/Entity.php:1216

Télécharger V2.0.4.1 :
Vous devez répondre avant de pouvoir voir le contenu des données cachées.
 
Ajout de la version 2.0.4 :)
 
Ajout de la version 2.0.4.1 :)
 
Sujets similaires Les plus vues Voir plus
Retour
Haut Bas