From c54cb5f9e13a3372ed8f590337f934f14e94080e Mon Sep 17 00:00:00 2001 From: rsgrinko Date: Sun, 29 Oct 2023 00:35:26 +0300 Subject: [PATCH] [+]add telegram id into proffile on admin section --- admin/profile.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/admin/profile.php b/admin/profile.php index d474adf..7a74676 100644 --- a/admin/profile.php +++ b/admin/profile.php @@ -19,7 +19,7 @@ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ - use Core\Models\{User, MQ}; + use Core\Models\{User, UserMeta}; require_once __DIR__ . '/inc/header.php'; @@ -134,6 +134,20 @@ + $objectUser->getId(), 'name' => 'telegramId']); + if (!empty($telegramMetaParam)) { + $telegramId = array_shift($telegramMetaParam)['value']; + ?> +
+ +
+ +
+
+ + +