/my_id
command.',
notificationtypes: 'Notification Types',
sendSilently: 'Send Silently',
sendSilentlyTip: 'Send notifications with no sound',
});
const NotificationsTelegram: React.FC = () => {
const intl = useIntl();
const { addToast } = useToasts();
const { data, error, revalidate } = useSWR(
'/api/v1/settings/notifications/telegram'
);
const NotificationsTelegramSchema = Yup.object().shape({
botAPI: Yup.string().required(
intl.formatMessage(messages.validationBotAPIRequired)
),
chatId: Yup.string()
.required(intl.formatMessage(messages.validationChatIdRequired))
.matches(
/^[-]?\d+$/,
intl.formatMessage(messages.validationChatIdRequired)
),
});
if (!data && !error) {
return {msg}
;
},
})}