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

CreateChannel Error #1606

Open
NichitaPaingu opened this issue Jan 21, 2025 · 0 comments
Open

CreateChannel Error #1606

NichitaPaingu opened this issue Jan 21, 2025 · 0 comments

Comments

@NichitaPaingu
Copy link

NichitaPaingu commented Jan 21, 2025

I have an error during creating the channel in telegram

public function api()
{
$settings = (new Settings())
->setLogger(
(new Settings\Logger())
->setLevel(Logger::LEVEL_FATAL)
)
->setAppInfo(
(new AppInfo())
->setApiId($api_id)
->setApiHash($api_hash)
);

        return new API(
            dirname(__DIR__) . '/sessions/' . config('modelineproto.session_name') . 'madeline',
            $settings
        );
    });

    $madelineProtoService = new MadelineProtoService();
    dd($madelineProtoService->api()->channels->createChannel([
        'broadcast' => true,
        'megagroup' => false,
        'title' => 'test',
        'about' => 'test'
    ]));

this dd needs to show me the data of channel
The channel is created but i get an error instead of channel data

until the time everuthing worked ok
what happened i dont know

Event loop terminated without resuming the current suspension (the cause is either a fiber deadlock, or an incorrectly unreferenced/canceled watcher): #0 /a/absolvent.club/vendor/revolt/event-loop/src/EventLoop/Internal/DriverSuspension.php:100 Fiber::suspend() #1 /a/absolvent.club/vendor/amphp/pipeline/src/Internal/QueueState.php:128 Revolt\EventLoop\Internal\DriverSuspension->suspend() #2 /a/absolvent.club/vendor/amphp/pipeline/src/Internal/ConcurrentQueueIterator.php:30 Amp\Pipeline\Internal\QueueState->continue() #3 /a/absolvent.club/vendor/amphp/byte-stream/src/ReadableIterableStream.php:64 Amp\Pipeline\Internal\ConcurrentQueueIterator->continue() #4 /a/absolvent.club/vendor/amphp/byte-stream/src/functions.php:32 Amp\ByteStream\ReadableIterableStream->read() #5 /a/absolvent.club/vendor/danog/madelineproto/src/Logger.php:320 Amp\ByteStream\pipe() #6 /a/absolvent.club/vendor/amphp/amp/src/functions.php:33 danog\MadelineProto\Logger::danog\MadelineProto{closure}() #7 /a/absolvent.club/vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php:425 Amp{closure}() #8 /a/absolvent.club/vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php:562 Revolt\EventLoop\Internal\AbstractDriver->invokeMicrotasks() #9 Revolt\EventLoop\Internal\AbstractDriver->Revolt\EventLoop\Internal{closure}() #0 /a/absolvent.club/vendor/revolt/event-loop/src/EventLoop/Internal/DriverSuspension.php:100 Fiber::suspend() #1 /a/absolvent.club/vendor/amphp/pipeline/src/Internal/QueueState.php:128 Revolt\EventLoop\Internal\DriverSuspension->suspend() #2 /a/absolvent.club/vendor/amphp/pipeline/src/Internal/ConcurrentQueueIterator.php:30 Amp\Pipeline\Internal\QueueState->continue() #3 /a/absolvent.club/vendor/amphp/byte-stream/src/ReadableIterableStream.php:64 Amp\Pipeline\Internal\ConcurrentQueueIterator->continue() #4 /a/absolvent.club/vendor/amphp/byte-stream/src/functions.php:32 Amp\ByteStream\ReadableIterableStream->read() #5 /a/absolvent.club/vendor/danog/madelineproto/src/Logger.php:320 Amp\ByteStream\pipe() #6 /a/absolvent.club/vendor/amphp/amp/src/functions.php:33 danog\MadelineProto\Logger::danog\MadelineProto{closure}() #7 /a/absolvent.club/vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php:425 Amp{closure}() #8 /a/absolvent.club/vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php:562 Revolt\EventLoop\Internal\AbstractDriver->invokeMicrotasks() #9 Revolt\EventLoop\Internal\AbstractDriver->Revolt\EventLoop\Internal{closure}()

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

1 participant