File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/mcp-server/src/handlers Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,12 @@ import type { HandlerFunction } from '../tools/types';
22import { asMarkdownContentResult , createOpenLink } from './utils' ;
33
44export const handler : HandlerFunction = async ( client , args ) => {
5- const body = args as any ;
6- const output = await client . messages . send ( body ) ;
5+ const { chatID , ... body } = args as any ;
6+ const output = await client . messages . send ( chatID , body ) ;
77
88 const lines : string [ ] = [ ] ;
99 if ( output . pendingMessageID ) {
10- const deeplink = createOpenLink ( '' , body ?. chatID ?? '' ) ;
10+ const deeplink = createOpenLink ( '' , chatID ?? '' ) ;
1111 if ( deeplink ) lines . push ( `**Open the chat in Beeper**: ${ deeplink } ` ) ;
1212 } else {
1313 lines . push ( 'Failed to send message.' ) ;
You can’t perform that action at this time.
0 commit comments