use danog\MadelineProto\MyTelegramOrgWrapper;use danog\MadelineProto\Settings;
$settings = new Settings();$wrapper = new MyTelegramOrgWrapper($settings);$wrapper->login($account->phone_number);
This is the error i'm receiving back:
danog\MadelineProto\DoHWrapper::__construct(): Argument #1 ($API) must be of type danog\MadelineProto\MTProto, danog\MadelineProto\Settings\Connection given
This is the code i'm using:
use danog\MadelineProto\MyTelegramOrgWrapper;
use danog\MadelineProto\Settings;
$settings = new Settings();
$wrapper = new MyTelegramOrgWrapper($settings);
$wrapper->login($account->phone_number);
This is the error i'm receiving back:
danog\MadelineProto\DoHWrapper::__construct(): Argument #1 ($API) must be of type danog\MadelineProto\MTProto, danog\MadelineProto\Settings\Connection given