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, for some reason madelineProto is not working for me first of all composer update dosn't support php version 7.2 and when i upgraded to 8.0 on bot.madeline i am getting this error below is my code
`<?php
use danog\MadelineProto\API;
use danog\MadelineProto\Settings;
use danog\MadelineProto\Settings\AppInfo;
Hello, for some reason madelineProto is not working for me first of all composer update dosn't support php version 7.2 and when i upgraded to 8.0 on bot.madeline i am getting this error below is my code
`<?php
use danog\MadelineProto\API;
use danog\MadelineProto\Settings;
use danog\MadelineProto\Settings\AppInfo;
require_once 'vendor\autoload.php';
$settings = new Settings;
$settings->setAppInfo((new AppInfo)
->setApiId(18947139)
->setApiHash("f2d7bee864996ba8db1e1eb7d6307522"));
$MadelineProto = new API('bot.madeline', $settings); // i am getting the error here this line is not working for me when i call it why?
$MadelineProto->botLogin('');
?>`
and below is the error on the terminal
PS C:\Users\Qaiser\Desktop\MadelineProto> php login.php
Error: Interface "Amp\Promise" not found in C:\Users\Qaiser\Desktop\MadelineProto\vendor\danog\madelineproto\src\danog\MadelineProto\Coroutine.php:22
Stack trace:
#0 C:\Users\Qaiser\Desktop\MadelineProto\vendor\composer\ClassLoader.php(571): include()
#1 C:\Users\Qaiser\Desktop\MadelineProto\vendor\composer\ClassLoader.php(428): Composer\Autoload\includeFile()
#2 C:\Users\Qaiser\Desktop\MadelineProto\vendor\danog\madelineproto\src\danog\MadelineProto\Tools.php(472): Composer\Autoload\ClassLoader->loadClass()
#3 C:\Users\Qaiser\Desktop\MadelineProto\vendor\danog\madelineproto\src\danog\MadelineProto\Async\AsyncConstruct.php(93): danog\MadelineProto\Tools::call()
#4 C:\Users\Qaiser\Desktop\MadelineProto\vendor\danog\madelineproto\src\danog\MadelineProto\API.php(172): danog\MadelineProto\Async\AsyncConstruct->setInitPromise()
#5 C:\Users\Qaiser\Desktop\MadelineProto\vendor\danog\magicalserializer\src\danog\Serializable.php(35): danog\MadelineProto\API->__magic_construct()
#6 C:\Users\Qaiser\Desktop\MadelineProto\login.php(16): danog\MadelineProto\API->__construct()
#7 {main}
PHP Fatal error: Uncaught Error: revolt/event-loop requires fibers to be available. You're currently running PHP 8.0.14 without fiber support. Please upgrade to PHP 8.1 or install ext-fiber from https://github.com/amphp/ext-fiber. in C:\Users\Qaiser\Desktop\MadelineProto\vendor\revolt\event-loop\src\EventLoop\Internal\AbstractDriver.php:33
Stack trace:
#0 C:\Users\Qaiser\Desktop\MadelineProto\vendor\revolt\event-loop\src\EventLoop\Internal\AbstractDriver.php(83): Revolt\EventLoop\Internal\AbstractDriver::checkFiberSupport()
#1 C:\Users\Qaiser\Desktop\MadelineProto\vendor\revolt\event-loop\src\EventLoop\Driver\StreamSelectDriver.php(46): Revolt\EventLoop\Internal\AbstractDriver->__construct()
#2 C:\Users\Qaiser\Desktop\MadelineProto\vendor\revolt\event-loop\src\EventLoop\DriverFactory.php(40): Revolt\EventLoop\Driver\StreamSelectDriver->__construct()
#3 C:\Users\Qaiser\Desktop\MadelineProto\vendor\revolt\event-loop\src\EventLoop\DriverFactory.php(41): Revolt\EventLoop\DriverFactory->Revolt\EventLoop{closure}()
#4 C:\Users\Qaiser\Desktop\MadelineProto\vendor\revolt\event-loop\src\EventLoop.php(346): Revolt\EventLoop\DriverFactory->create()
#5 C:\Users\Qaiser\Desktop\MadelineProto\vendor\amphp\byte-stream\src\functions.php(107): Revolt\EventLoop::getDriver()
#6 C:\Users\Qaiser\Desktop\MadelineProto\vendor\danog\madelineproto\src\danog\MadelineProto\Magic.php(408): Amp\ByteStream\getStdin()
#7 C:\Users\Qaiser\Desktop\MadelineProto\vendor\danog\madelineproto\src\danog\MadelineProto\Exception.php(102): danog\MadelineProto\Magic::shutdown()
#8 [internal function]: danog\MadelineProto\Exception::exceptionHandler()
#9 {main}
thrown in C:\Users\Qaiser\Desktop\MadelineProto\vendor\revolt\event-loop\src\EventLoop\Internal\AbstractDriver.php on line 33
PS C:\Users\Qaiser\Desktop\MadelineProto>
The text was updated successfully, but these errors were encountered: