la_bot_back/app/modules/tgbot/controllers/TgBotRestController.php
2025-01-23 20:02:06 +03:00

28 lines
633 B
PHP

<?php
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
{
public function actionGetScanBtn(int $id): void
{
$dialog = Tgbot::where("dialog_id", $id)->first();
if ($dialog){
$this->renderApi([
'html' => '<a class="btn btn-primary" href="/miniapp/scanner">Сканировать</a>',
]);
}
}
public function actionGetNews(): void
{
}
}