Add defensive error handling to throw clear error if chatId is missing before attempting to send Telegram message. This helps debug 'resource not found' errors by identifying data flow issues.