Skip to main content
Module

x/smallbot_matrix/mod.ts>SmallBot#sendMessage

Small Matrix Little Bot for Deno
Latest
method SmallBot.prototype.sendMessage
Re-export
import { SmallBot } from "https://deno.land/x/smallbot_matrix@0.1.2/mod.ts";

Send a custom message to a room

await client.sendMessage(roomId, "m.text", "<b>hello world</b>");

Parameters

roomId: string

ID of the Room

msgType: string

type like m.text or m.notice

formattedBody: string

the HTML body of the message formatHTMLtoPlain will be used to create the plain-text version