mirror of
https://github.com/BushlanovDev/max-bot-api-client-php.git
synced 2026-10-25 13:27:31 +00:00
Added tests
This commit is contained in:
+5
-1
@@ -106,7 +106,11 @@ class Api
|
||||
self::METHOD_POST,
|
||||
self::ACTION_SUBSCRIPTIONS,
|
||||
[],
|
||||
compact('url', 'secret', 'update_types'),
|
||||
[
|
||||
'url' => $url,
|
||||
'secret' => $secret,
|
||||
'update_types' => $update_types ? array_map(fn($type) => $type->value, $update_types) : null,
|
||||
]
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user