diff --git a/PHP-Send-Message-to-Synology-Chat..md b/PHP-Send-Message-to-Synology-Chat..md new file mode 100644 index 0000000..1be8b78 --- /dev/null +++ b/PHP-Send-Message-to-Synology-Chat..md @@ -0,0 +1,18 @@ +```php + 'SYNO.Chat.External', + 'method' => 'incoming', + 'version' => 2, + 'token' => 'bvogni9XyNBRjQmIjmrEXZ92J6JttDJNciJCWJaoBj6So9SpS44BC8vEjE7GR70Y', + 'payload' => json_encode(['text'=>$message]), + ]; + $link = 'https://likom.myds.me/chat/webapi/entry.cgi?'; + return file_get_contents($link.http_build_query($options)); +} + +if (isset($_GET['m'])) { + echo sendBot($_GET['m']); +} +``` \ No newline at end of file