Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace danog\MadelineProto;
- class EventHandler extends InternalDoc
- {
- public function __construct(?API $MadelineProto)
- {
- if (!$MadelineProto) {
- return;
- }
- $this->API = $MadelineProto->API;
- $this->async = &$MadelineProto->async;
- $this->methods = &$MadelineProto->methods;
- foreach ($this->API->getMethodNamespaces() as $namespace) {
- $this->{$namespace} = new APIFactory($namespace, $this->API, $this->async);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement