Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Text content type

This package provides an XMTP content type to support text messages.

Note

This content type is included by default in official XMTP SDKs.

Install the package

# npm
npm i @xmtp/content-type-text

# yarn
yarn add @xmtp/content-type-text

# pnpm
pnpm i @xmtp/content-type-text

Send a text message

Use a string to send a text message. It's not required to specify a content type in the send options for text messages.

await conversation.send("gm");

Developing

Run yarn dev to build the content type and watch for changes, which will trigger a rebuild.

For more information on contributing to this repository, see our contributing guidelines.