|
@@ -224,7 +224,7 @@ class BaseService
|
|
|
];
|
|
];
|
|
|
if ($index > 0) {
|
|
if ($index > 0) {
|
|
|
$res[] = $botMsg;
|
|
$res[] = $botMsg;
|
|
|
-// self::telegram()->sendMessage($botMsg);
|
|
|
|
|
|
|
+ self::telegram()->sendMessage($botMsg);
|
|
|
} else {
|
|
} else {
|
|
|
if (count($keyboard) > 0) {
|
|
if (count($keyboard) > 0) {
|
|
|
$botMsg['reply_markup'] = json_encode(['inline_keyboard' => $keyboard]);
|
|
$botMsg['reply_markup'] = json_encode(['inline_keyboard' => $keyboard]);
|
|
@@ -235,17 +235,17 @@ class BaseService
|
|
|
$botMsg['caption'] = $item;
|
|
$botMsg['caption'] = $item;
|
|
|
$botMsg['protect_content'] = true;
|
|
$botMsg['protect_content'] = true;
|
|
|
$res[] = $botMsg;
|
|
$res[] = $botMsg;
|
|
|
-// $response = self::telegram()->sendPhoto($botMsg);
|
|
|
|
|
|
|
+ $response = self::telegram()->sendPhoto($botMsg);
|
|
|
} else {
|
|
} else {
|
|
|
$res[] = $botMsg;
|
|
$res[] = $botMsg;
|
|
|
-// $response = self::telegram()->sendMessage($botMsg);
|
|
|
|
|
|
|
+ $response = self::telegram()->sendMessage($botMsg);
|
|
|
|
|
+ }
|
|
|
|
|
+ if ($isTop === true) {
|
|
|
|
|
+ self::telegram()->pinChatMessage([
|
|
|
|
|
+ 'chat_id' => "@{$bettingGroup}",
|
|
|
|
|
+ 'message_id' => $response->get('message_id')
|
|
|
|
|
+ ]);
|
|
|
}
|
|
}
|
|
|
-// if ($isTop === true) {
|
|
|
|
|
-// self::telegram()->pinChatMessage([
|
|
|
|
|
-// 'chat_id' => "@{$bettingGroup}",
|
|
|
|
|
-// 'message_id' => $response->get('message_id')
|
|
|
|
|
-// ]);
|
|
|
|
|
-// }
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|