mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
fix(telegram): Simplify error handling for missing Telegram message
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user