Skip to content

Commit bde7dc9

Browse files
committed
feat: update telegram notification
1 parent 00f1436 commit bde7dc9

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed

components/wizards/notifications/IntegrationNotificationStep.tsx

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const notificationIntegrations = [
3939
name: 'Discord',
4040
},
4141
{
42-
key: 'telegram-bot',
42+
key: 'telegram',
4343
name: 'Telegram',
4444
},
4545
{
@@ -221,20 +221,10 @@ export function IntegrationNotificationStep({
221221
) : (
222222
<Loading />
223223
))}
224-
{integrationSelected?.key === 'telegram-bot' && (
224+
{integrationSelected?.key === 'telegram' && (
225225
<div className="mt-8">
226226
<SchemaForm
227-
schema={{
228-
type: 'object',
229-
required: ['chatId'],
230-
properties: {
231-
chatId: {
232-
type: 'string',
233-
title: 'Chat ID',
234-
description: `Enter the unique identifier for the target chat (e.g. 1035597319) or username of the target public chat (in the format @channelusername or @supergroupusername). For example, if the group's public link is t.me/mygroup, the username is @mygroup.`,
235-
},
236-
},
237-
}}
227+
schema={{}}
238228
onChange={onFormInputsChanged}
239229
onSubmit={() => {}}
240230
initialInputs={extraInputs}

components/wizards/notifications/NotificationStep.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,10 @@ export function NotificationStep({ notificationTrigger, readonly }: Props) {
108108
},
109109
credentialsId,
110110
}
111-
case 'telegram-bot':
111+
case 'telegram':
112112
return {
113-
key: 'telegram_bot_api-send-text-message-or-reply',
113+
key: 'sendMessage',
114114
inputs: {
115-
chatId: inputs.chatId,
116115
text: actionData.message,
117116
},
118117
credentialsId,

0 commit comments

Comments
 (0)