|
@@ -130,12 +130,17 @@ class BaseService
|
|
|
* @param {*} $key
|
|
|
* @return {*}
|
|
|
*/
|
|
|
- public static function bettingGroupNotice($text)
|
|
|
+ public static function bettingGroupNotice($text ,$keyboard = [])
|
|
|
{
|
|
|
$bettingGroup = Config::where('field', 'betting_group')->first()->val;
|
|
|
- self::telegram()->sendMessage([
|
|
|
+
|
|
|
+ $botMsg = [
|
|
|
'chat_id' => "@{$bettingGroup}",
|
|
|
'text' => $text
|
|
|
- ]);
|
|
|
+ ];
|
|
|
+ if($keyboard){
|
|
|
+ $botMsg['reply_markup'] = json_encode(['inline_keyboard' => $keyboard]);
|
|
|
+ }
|
|
|
+ self::telegram()->sendMessage($botMsg);
|
|
|
}
|
|
|
}
|