Integration yii2-extenstion for telegram bot service

This commit is contained in:
Korzinkayablok
2021-08-27 12:35:22 +03:00
parent 83e1659632
commit 0a39cc750a
5 changed files with 1895 additions and 579 deletions

View File

@ -77,6 +77,17 @@ return [
['class' => 'yii\rest\UrlRule', 'controller' => 'skills'],
],
],
'telegram_bot' => [
'class' => 'kavalar\TelegramBotApi',
'templates' => [
'interview_request' =>
"Пришёл запрос на интервью.\n".
"Профиль: ~profile_id~\n".
"Телефон: ~phone~\n".
"Email: ~email~\n".
"Комментарий: ~comment~"
],
],
],
'params' => $params,