DEV: Незначительные изменения
This commit is contained in:
parent
0cf4554909
commit
df61cee3e6
1 changed files with 2 additions and 28 deletions
|
@ -2,8 +2,8 @@
|
|||
|
||||
class Telegram
|
||||
{
|
||||
|
||||
// https://api.telegram.org/bot<YourBOTToken>/sendMessage?chat_id=<YourCHATID>&text=<YourMESSAGE>
|
||||
// PHP Telegram Bot based on the official Telegram Bot API
|
||||
// We are watching: https://github.com/php-telegram-bot/core
|
||||
// Stub for Telegram
|
||||
public static function addWebhook($text, $title, $url)
|
||||
{
|
||||
|
@ -12,31 +12,5 @@ class Telegram
|
|||
$chat_id = config('integration.chat_id');
|
||||
|
||||
file_get_contents($url . '/bot'. $token .'/sendMessage?chat_id='. $chat_id .'&disable_notification=true&parse_mode=HTML&text=' . $text);
|
||||
|
||||
|
||||
|
||||
/* $text = $title . '\n' . $text;
|
||||
|
||||
|
||||
$url = 'https://api.telegram.org';
|
||||
$webhookurl = $url . '/bot' . config('integration.telegram_token') . '/sendMessage?chat_id=' . config('integration.chat_id') . '&text=' . $text;
|
||||
|
||||
$params = [
|
||||
'parse_mode' => 'HTML',
|
||||
];
|
||||
|
||||
// Curl::index($webhookurl, $params, ['Content-type: application/json']);
|
||||
|
||||
$text = $title . '\n' . $text;
|
||||
|
||||
$url = 'https://api.telegram.org';
|
||||
$webhookurl = $url . '/bot' . config('integration.telegram_token') . '/sendMessage?chat_id=' . config('integration.chat_id') . '&text=' . $text;
|
||||
|
||||
$params = [
|
||||
'parse_mode' => 'HTML',
|
||||
];
|
||||
|
||||
Curl::index($webhookurl, $params, ['Content-type: application/json']); */
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue