add Telegram bot id dialogs table and API methods

This commit is contained in:
iIronside
2023-10-25 14:37:29 +03:00
parent da08bcf1b2
commit 5df755ff8b
16 changed files with 450 additions and 33 deletions

View File

@ -0,0 +1,31 @@
<?php
namespace frontend\modules\api\models\profile\forms;
use yii\base\Model;
class ProfileChangePersonalDataForm extends Model
{
/**
* @var string
*/
public $newUsername;
/**
* @return array
*/
public function rules()
{
return [
[['newUsername'], 'string', 'max' => 255],
[['newUsername'], 'required'],
];
}
/**
* @return string
*/
public function formName(): string
{
return '';
}
}