Небольшие изменения

This commit is contained in:
RedHood
2020-09-03 16:18:02 +10:00
parent 3d74862474
commit 9d38d69445
38 changed files with 56 additions and 1607 deletions

View File

@@ -0,0 +1,38 @@
<?php
declare(strict_types=1);
namespace VK\API\Methods;
use VK\Core;
use VK\API\Traits\Request;
class Message
{
use Request;
private const METHOD = 'messages.send';
public static function post($from, $to, $message, $trolling)
{
if (is_int($from)) $from = Core::init()->get($from);
$params = [
'message' => $message,
'peer_id' => $to,
'access_token' => $from->token,
'v' => $from->version,
'random_id' => $trolling
];
self::request(self::METHOD, $params, $from->getBrowser());
}
public static function get()
{
}
public static function delete()
{
}
}

View File

@@ -0,0 +1,12 @@
<?php
declare(strict_types=1);
namespace VK\API\Methods;
abstract class MethodAbstract
{
abstract public static function post();
abstract public static function get();
abstract public static function delete();
}