Send TTS Message

BlockMessages

Send a text-to-speech message.

Inputs

Channel IDRequired

ID of channel to send message to.

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 message

Build a bot using blocks like Send TTS 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_tts_message

Inputs

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

Outputs

FieldInventScript nameValue
Message IDmessage_id

Example InventScript

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

More messages blocks