notification

This commit is contained in:
2025-01-27 20:03:58 +03:00
parent 4692c70378
commit 6534b3155d
19 changed files with 670 additions and 38 deletions

View File

@ -0,0 +1,30 @@
<?php
namespace kernel\app_modules\tgbot\models\forms;
use kernel\FormModel;
/**
* @property int $bot_id
* @property int $dialog_id
* @property string $to_group
* @property string $content
* @property string $photo
* @property int $status
*/
class CreateTgbotNotificationForm extends FormModel
{
public function rules(): array
{
return [
'bot_id' => 'required|alpha-numeric',
'dialog_id' => 'alpha-numeric',
'to_group' => 'alpha-numeric',
'content' => 'min-str-len:5',
'photo' => 'min-str-len:5',
'status' => 'alpha-numeric'
];
}
}