Send or Edit Text Message

BlockMessages

Send or Edit a text-only message

Inputs

Channel IDRequired

ID of channel to send message to.

Edit Message ID

If you wish to edit a message instead of sending a new message, provide a message ID.

Reply To Message ID

If you wish to reply to a message, provide the ID of the message you wish to reply to. This does not work with editing messages.

Allow Mentions

Choose which mention types should notify users. Empty only pings users; None disables all pings. None overrides other selections. Unselected mentions are displayed without pinging.

OptionsNoneEveryone/HereRolesUsers
Message ContentRequired

Content of the message sent by the bot.

Example: Hello world!

Outputs

Message ID

ID of the sent or edited message

Build a bot using blocks like Send or Edit Text Message

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: send_text_message

Inputs

FieldInventScript nameValue
Channel IDchannel_id
Edit Message IDedit_message_id
Reply To Message IDreply_to_message_id
Allow Mentionsallow_mentions"None", "Everyone/Here", "Roles", "Users"
Message Contentmessage_contente.g. "Hello world!"

Outputs

FieldInventScript nameValue
Message IDmessage_id

Example InventScript

textMessage := send_text_message(Args{channel_id: trigger.channel_id, message_content: "Hello world!"})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Message ID: " + textMessage.message_id,
})

More messages blocks