{"record":{"id":"a2b824e8ec670049","repo":"louislam/uptime-kuma","slug":"chatidnotfound-a2b824","errorCode":null,"errorMessage":"chatIDNotFound","messagePattern":"chatIDNotFound","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/components/notifications/Telegram.vue","lineNumber":195,"sourceCode":"\n        /**\n         * Get the telegram chat ID\n         * @returns {Promise<void>}\n         * @throws The chat ID could not be found\n         */\n        async autoGetTelegramChatID() {\n            try {\n                let res = await axios.get(this.telegramGetUpdatesURL(\"withToken\"));\n\n                if (res.data.result.length >= 1) {\n                    let update = res.data.result[res.data.result.length - 1];\n\n                    if (update.channel_post) {\n                        this.$parent.notification.telegramChatID = update.channel_post.chat.id;\n                    } else if (update.message) {\n                        this.$parent.notification.telegramChatID = update.message.chat.id;\n                    } else {\n                        throw new Error(this.$t(\"chatIDNotFound\"));\n                    }\n                } else {\n                    throw new Error(this.$t(\"chatIDNotFound\"));\n                }\n            } catch (error) {\n                this.$root.toastError(error.message);\n            }\n        },\n    },\n};\n</script>\n\n<style lang=\"scss\" scoped>\ntextarea {\n    min-height: 150px;\n}\n</style>\n","sourceCodeStart":177,"sourceCodeEnd":213,"githubUrl":"https://github.com/louislam/uptime-kuma/blob/6b5ea0155793e666666745fb8d6fef1e829543a2/src/components/notifications/Telegram.vue#L177-L213","documentation":"Error \"chatIDNotFound\" thrown in louislam/uptime-kuma.","triggerScenarios":"Thrown at src/components/notifications/Telegram.vue:195 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Open the Telegram notification settings in Uptime Kuma and verify the Chat ID field is filled in.","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.","For group chats, add the bot to the group and use the group's (negative) chat ID.","Re-test the notification after saving the corrected chat ID."],"exampleFix":"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.","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6b5ea0155793e666666745fb8d6fef1e829543a2","analyzedAt":"2026-08-12T23:42:12.959Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}