fix(telegram): Simplify error handling for missing Telegram message

This commit is contained in:
Nawaz Dhandala
2025-12-23 21:27:09 +00:00
parent b2321dd966
commit d2c33f4996

View File

@@ -66,9 +66,7 @@ export default class SendMessageToChat extends ComponentCode {
}
if (!args["text"]) {
throw options.onError(
new BadDataException("Telegram message not found"),
);
throw options.onError(new BadDataException("Telegram message not found"));
}
const botToken: string = args["bot-token"]?.toString() as string;