Skip to content

Commit

Permalink
feat(Telegram node): Add support to Keyboard Button Mini Apps
Browse files Browse the repository at this point in the history
  • Loading branch information
stanleytakamatsu committed Jun 22, 2024
1 parent 2ce97be commit 1a4bff6
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions packages/nodes-base/nodes/Telegram/Telegram.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1289,6 +1289,26 @@ export class Telegram implements INodeType {
default: '',
description: 'HTTP or tg:// URL to be opened when button is pressed',
},
{
displayName: 'Web App',
name: 'web_app',
type: 'collection',
placeholder: 'Set Telegram Web App URL',
typeOptions: {
multipleValues: false,
},
default: {},
options: [
{
displayName: 'URL',
name: 'url',
type: 'string',
default: '',
description: 'An HTTPS URL of a Web App to be opened',
},
],
description: 'Launch the Telegram Web App',
},
],
},
],
Expand Down Expand Up @@ -1365,6 +1385,26 @@ export class Telegram implements INodeType {
default: false,
description: "Whether the user's request_location",
},
{
displayName: 'Web App',
name: 'web_app',
type: 'collection',
placeholder: 'Set Telegram Web App URL',
typeOptions: {
multipleValues: false,
},
default: {},
options: [
{
displayName: 'URL',
name: 'url',
type: 'string',
default: '',
description: 'An HTTPS URL of a Web App to be opened',
},
],
description: 'Launch the Telegram Web App',
},
],
},
],
Expand Down

0 comments on commit 1a4bff6

Please sign in to comment.