This commit is contained in:
2025-01-23 20:02:06 +03:00
parent 485c11de5f
commit 08cdf44b67
16 changed files with 240 additions and 23 deletions

View File

@ -3,6 +3,8 @@
namespace app\modules\tgbot\controllers;
use app\modules\tgbot\models\Tgbot;
use kernel\app_modules\tag\service\TagService;
use kernel\modules\post\models\Post;
class TgBotRestController extends \kernel\app_modules\tgbot\controllers\TgBotRestController
{
@ -12,9 +14,15 @@ class TgBotRestController extends \kernel\app_modules\tgbot\controllers\TgBotRes
$dialog = Tgbot::where("dialog_id", $id)->first();
if ($dialog){
$this->renderApi([
'html' => '<a class="btn btn-primary" href="/miniapp/scan">Сканировать</a>',
'html' => '<a class="btn btn-primary" href="/miniapp/scanner">Сканировать</a>',
]);
}
}
public function actionGetNews(): void
{
}
}