Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MadelineProtoAPI Issue Login Missing error #1099

Closed
zackwork opened this issue Jan 11, 2022 · 2 comments
Closed

MadelineProtoAPI Issue Login Missing error #1099

zackwork opened this issue Jan 11, 2022 · 2 comments

Comments

@zackwork
Copy link

zackwork commented Jan 11, 2022

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>

@danog
Copy link
Owner

danog commented Jan 11, 2022

Could you send me your composer.json?

@danog
Copy link
Owner

danog commented May 3, 2022

I suggest you use madeline.php.

@danog danog closed this as completed May 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants