6. Switch to chat
This step is about chat. tt does not have it yet: it shows the mail accounts of config.toml and no chat account. The Chat row of the demo tree is a made-up account with no folders, and no key opens a conversation. Today you send a chat message with tcli, and you see the messages that arrive with tcli watch.
What you need
Section titled “What you need”A chat account in config.toml, on IRC or XMPP, as on First run. Without one, tcli says:
No chat account is configured.Send a chat message
Section titled “Send a chat message”The text is the standard input. On IRC, --to is a nick or a channel. --join joins the channel before writing to it:
echo "Hello from Tilde" | tcli send chat --to "#tilde" --joinWith more than one chat account, add --account and the id of the account. On XMPP, --to is a JID or a room.
See what arrives
Section titled “See what arrives”tcli watchtcli watch writes one line for each event of the accounts, chat messages and mentions among them, until Ctrl-c. See Watch.
Checkpoint
Section titled “Checkpoint”The send command writes one line that names the recipient and the account:
Sent to #tilde on irc.More about tcli send chat is on Send mail and chat.