Menu

1 / 2

Chat SDK adds Messenger adapter support - Vercel

Vercel News·Ben Sabic·5 months ago
#pNqlzC9U
#vercel#chat#adapter#messenger#message
Reading 0:00
15s threshold

Chat SDK now supports Messenger, extending its single-codebase approach to Slack, Discord, GitHub, Teams, and Telegram with the new Messenger adapter .

Teams can build bots that support messages, reactions, attachments, postback buttons, and direct conversations, with display names fetched automatically from user profiles.

Try the Messenger adapter today:

import { Chat } from "chat" ;

import { createMessengerAdapter } from "@chat-adapter/messenger" ;

const bot = new Chat ( {

userName : "mybot" ,

adapters : {

messenger : createMessengerAdapter ( ) ,

} ,

} ) ;

bot . onDirectMessage ( async ( thread , message ) => {

await thread . post ( ` You said: ${ message . text } ` ) ;

} ) ;

The adapter does not support message history, editing, or deletion. Certain components, like tables and fields, render as text fallbacks.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.