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

Surfaced: TypeError, Argument #1 ($message_id) must be of type int, null given #1610

Open
yhyasyrian opened this issue Feb 1, 2025 · 0 comments

Comments

@yhyasyrian
Copy link

I'm encountering a TypeError when using MadelineProto. The error occurs in the methodRecall() function where a null value is being passed instead of an integer for the $message_id parameter.

Error Details:
TypeError: danog\MadelineProto\Connection::methodRecall(): Argument #1 ($message_id) must be of type int, null given, called in /root/course-bot/vendor/danog/madelineproto/src/MTProtoSession/ResponseHandler.php on line 466 and defined in /root/course-bot/vendor/danog/madelineproto/src/MTProtoSession/CallHandler.php:48

Stack Trace:

#0 /root/course-bot/vendor/danog/madelineproto/src/MTProtoSession/ResponseHandler.php(466): danog\MadelineProto\Connection->methodRecall()
#1 /root/course-bot/vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php(597): danog\MadelineProto\Connection->danog\MadelineProto\MTProtoSession\{closure}()
#2 [internal function]: Revolt\EventLoop\Internal\AbstractDriver->Revolt\EventLoop\Internal\{closure}()
#3 /root/course-bot/vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php(498): Fiber->start()
#4 /root/course-bot/vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php(553): Revolt\EventLoop\Internal\AbstractDriver->invokeCallbacks()
#5 [internal function]: Revolt\EventLoop\Internal\AbstractDriver->Revolt\EventLoop\Internal\{closure}()
#6 /root/course-bot/vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php(94): Fiber->resume()
#7 /root/course-bot/vendor/revolt/event-loop/src/EventLoop/Internal/DriverSuspension.php(117): Revolt\EventLoop\Internal\AbstractDriver->Revolt\EventLoop\Internal\{closure}()
#8 /root/course-bot/vendor/amphp/amp/src/Future.php(251): Revolt\EventLoop\Internal\DriverSuspension->suspend()
#9 /root/course-bot/vendor/danog/madelineproto/src/Wrappers/Loop.php(108): Amp\Future->await()
#10 /root/course-bot/vendor/danog/madelineproto/src/AbstractAPI.php(84): danog\MadelineProto\MTProto->loop()
#11 /root/course-bot/vendor/danog/madelineproto/src/AbstractAPI.php(65): danog\MadelineProto\AbstractAPI->startAndLoopLogic()
#12 /root/course-bot/vendor/danog/madelineproto/src/EventHandler.php(167): danog\MadelineProto\AbstractAPI->startAndLoopInternal()
#13 /root/course-bot/index.php(151): danog\MadelineProto\EventHandler::startAndLoopBot()
#14 {main}

Additional Information:
MadelineProto version: 8.3.1
PHP version: 8.3.15
Operating System: 22.04.5 LTS (Jammy Jellyfish)

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