У меня не получается добавить в telergam канал группу с обсуждениями через MadelineProto (channels.setDiscussionGroup)
Я пишу юзер бота на php MadelineProto, моей задачей было автоматически создавать канал и добавлять в него чат для обсуждений, я решил использовать метод из библиотеки channels.setDiscussionGroup (https://docs.madelineproto.xyz/API_docs/methods/channels.setDiscussionGroup.html), но скрипт мне выдает ошибку:
Exception: This peer is not present in the internal peer database in ExitFailure.php:61
Exception: \danog\MadelineProto\Exception: This peer is not present in the internal peer database in phar:///var/www/html/domain.my/public_html/test/madeline-31eff9db1fe27b60a84d35da3844fb8ee18e43bf-81.phar/vendor/danog/madelineproto/src/Ipc/ExitFailure.php:61
Revision: 31eff9db1fe27b60a84d35da3844fb8ee18e43bf-81
TL Trace:
PeerHandler.php(520): getInfo()
TL.php(622): getInputConstructor()
Connection.php(419): serializeMethod()
CallHandler.php(195): sendMessage()
CallHandler.php(102): methodCallAsyncWrite()
CallHandler.php(47): methodCallAsyncRead()
Server.php(237): methodCallAsyncRead()
AbstractDriver.php(406): clientRequest()
AbstractDriver.php(596): invokeMicrotasks()
Revolt\EventLoop\Internal\{closure}()
AbstractDriver.php(406): resume()
AbstractDriver.php(596): invokeMicrotasks()
Revolt\EventLoop\Internal\{closure}()
AbstractDriver.php(406): resume()
AbstractDriver.php(596): invokeMicrotasks()
Revolt\EventLoop\Internal\{closure}()
AbstractDriver.php(478): resume()
AbstractDriver.php(533): invokeCallbacks()
Revolt\EventLoop\Internal\{closure}()
AbstractDriver.php(86): resume()
DriverSuspension.php(97): Revolt\EventLoop\Internal\{closure}()
Future.php(251): suspend()
Server.php(162): await()
entry.php(117): waitShutdown()
entry.php(147): {closure}()
madeline.php(174): require_once("phar:\/\/\/var\/www\/html\/domain.my\/public_html\/test\/madeline-31eff9db1fe27b60a84d35da3844fb8ee18e43bf-81.phar\/vendor\/danog\/madelineproto\/src\/Ipc\/Runner\/entry.php")
madeline.php(214): load()
madeline.php(252): install()
хотя я передаю верные параметры
$MadelineProto->channels->setDiscussionGroup(broadcast: 1730446669, group: 881100440);
я пробовал и -1001730446669, -100881100440, канал и чат с такими id точно существуют, если что, то создаю я их таким образом
$channel = $MadelineProto->channels->createChannel(broadcast: true, title: $title, about: $description );
$chat = $MadelineProto->messages->createChat(broadcast: true, users: [], title: $title );
если есть идеи, то подскажите как это реализовать
P.S. Я авторизован как user, а не bot