louislam/uptime-kuma · error · Error

chatIDNotFound

Error message

chatIDNotFound

What it means

Error "chatIDNotFound" thrown in louislam/uptime-kuma.

Source

Thrown at src/components/notifications/Telegram.vue:195

        /**
         * Get the telegram chat ID
         * @returns {Promise<void>}
         * @throws The chat ID could not be found
         */
        async autoGetTelegramChatID() {
            try {
                let res = await axios.get(this.telegramGetUpdatesURL("withToken"));

                if (res.data.result.length >= 1) {
                    let update = res.data.result[res.data.result.length - 1];

                    if (update.channel_post) {
                        this.$parent.notification.telegramChatID = update.channel_post.chat.id;
                    } else if (update.message) {
                        this.$parent.notification.telegramChatID = update.message.chat.id;
                    } else {
                        throw new Error(this.$t("chatIDNotFound"));
                    }
                } else {
                    throw new Error(this.$t("chatIDNotFound"));
                }
            } catch (error) {
                this.$root.toastError(error.message);
            }
        },
    },
};
</script>

<style lang="scss" scoped>
textarea {
    min-height: 150px;
}
</style>

View on GitHub (pinned to 6b5ea01557)

Solutions

  1. Open the Telegram notification settings in Uptime Kuma and verify the Chat ID field is filled in.
  2. To get your chat ID, send a message to your bot, then open https://api.telegram.org/bot<TOKEN>/getUpdates and copy the chat.id value from the response. Alternatively use a bot such as @userinfobot.
  3. For group chats, add the bot to the group and use the group's (negative) chat ID.
  4. Re-test the notification after saving the corrected chat ID.

Example fix

Set the Chat ID in the Telegram notification configuration to the numeric chat.id obtained from https://api.telegram.org/bot<TOKEN>/getUpdates, then click Test to confirm delivery.

When it happens

Trigger: Thrown at src/components/notifications/Telegram.vue:195 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of louislam/uptime-kuma@6b5ea01557 (2026-08-12). Data as JSON: /api/errors/a2b824e8ec670049. Report an issue: GitHub.