You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello there. Trying to use new (to me) v3.8.2. But can't use it with Telegram provider.
PHP Fatal error: Uncaught Error: Class "Hybridauth\\Hybridauth\\Provider\\Telegram" not found in /var/some/www/index.php:20\nStack trace:\n#0 {main}\n thrown in /var/some/www/index.php on line 20
Also, i've have same error with HttpClient: Uncaught Error: Class "Hybridauth\\Hybridauth\\HttpClient\\Util" not found
But when i changed this line: 'callback' => Hybridauth\HttpClient\Util::getCurrentUrl(),
to 'callback' => HttpClient\Util::getCurrentUrl(),
error disappear.
The text was updated successfully, but these errors were encountered:
Fixed by adding slash before Hybridauth\Provider\Telegram($config);
In this line: $adapter = new \Hybridauth\Provider\Telegram($config);
Is this documentaion mistake or something wrong with my environment?
Hello there. Trying to use new (to me) v3.8.2. But can't use it with Telegram provider.
PHP Fatal error: Uncaught Error: Class "Hybridauth\\Hybridauth\\Provider\\Telegram" not found in /var/some/www/index.php:20\nStack trace:\n#0 {main}\n thrown in /var/some/www/index.php on line 20
In index.php i have these:
include_once( dirname( __FILE__ ) . '/hybridauth/autoload.php' );
use Hybridauth\Hybridauth;
use Hybridauth\HttpClient;
$config = ['callback' => HttpClient\Util::getCurrentUrl(),'keys' => ['id' => 'mybot', 'secret' => '123:somesecret'],];
$adapter = new Hybridauth\Provider\Telegram($config);
try {
$adapter->authenticate();
$userProfile = $adapter->getUserProfile();
} catch (\Exception $e) {
print $e->getMessage();
}
PHP Version 8.1.6
Also, i've have same error with HttpClient:
Uncaught Error: Class "Hybridauth\\Hybridauth\\HttpClient\\Util" not found
But when i changed this line:
'callback' => Hybridauth\HttpClient\Util::getCurrentUrl(),
to
'callback' => HttpClient\Util::getCurrentUrl(),
error disappear.
The text was updated successfully, but these errors were encountered: