[Telegram] Core

xF2 Add-on [Telegram] Core 2.0.4.1

No permission to download

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
Implemented our own
Code:
\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.
  • Like
Reactions: senator
Bug is related with sending authorization message when bot already blocked by user
Removed classes SModders\TelegramCore\AuthMethod. Now the default page with the button is used, with the option of switching to the bot (if the button is not displayed).
Top