webhook := create_webhook(Args{channel_id: trigger.channel_id, webhook_name: "..."})
send_text_message(Args{
channel_id: trigger.channel_id,
message_content: "Webhook ID: " + webhook.webhook_id,
})
Inputs
Channel IDRequired
ID of the channel to create the webhook in.
Webhook NameRequired
Name of the webhook to create.
Outputs
Webhook ID
ID of the created webhook.
Webhook Name
Name of the created webhook.
Webhook Token
Token of the created webhook.
Build a bot using blocks like Create Webhook
Use this block in our visual flow editor. Bots are hosted 24/7 for free on inventor.bot.
Advanced Documentation
This documentation can be useful when using code mode. View as Markdown
ID:
create_webhookInputs
| Field | InventScript name | Value |
|---|---|---|
| Channel ID | channel_id | |
| Webhook Name | webhook_name |
Outputs
| Field | InventScript name | Value |
|---|---|---|
| Webhook ID | webhook_id | |
| Webhook Name | webhook_name | |
| Webhook Token | webhook_token |