From 7638b736458e5d89779413ff12f0c16613532221 Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Tue, 15 Feb 2022 23:30:07 +0800 Subject: [PATCH] Fix #1300 --- src/components/notifications/Telegram.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/notifications/Telegram.vue b/src/components/notifications/Telegram.vue index d263f636f..20deff7b4 100644 --- a/src/components/notifications/Telegram.vue +++ b/src/components/notifications/Telegram.vue @@ -63,9 +63,9 @@ export default { let update = res.data.result[res.data.result.length - 1]; if (update.channel_post) { - this.notification.telegramChatID = update.channel_post.chat.id; + this.$parent.notification.telegramChatID = update.channel_post.chat.id; } else if (update.message) { - this.notification.telegramChatID = update.message.chat.id; + this.$parent.notification.telegramChatID = update.message.chat.id; } else { throw new Error(this.$t("chatIDNotFound")); }