Build complex messages with MsgBuffer
mainFor rich messages, use MsgBuffer (or lark.NewMsgBuffer) which allows for method chaining to build message bodies.
Supported Message Types
MsgText: Plain textMsgPost: Rich textMsgInteractive: Interactive cardsMsgShareCard: Group share cardsMsgShareUser: User share cardsMsgImage: ImagesMsgFile: FilesMsgAudio: AudioMsgMedia: MediaMsgSticker: Stickers
Binding Functions
Use these to specify the recipient or context:
BindChatID: Bind toOpenID,UserID,Email,ChatID, orUnionID.BindOpenID: Bind to a user's Open ID.BindUserID: Bind to a user's User ID.BindUnionID: Bind to a user's Union ID.BindEmail: Bind to a user's email.BindReply: Required when replying to a specific message ID.
Content Functions
Pair these with the appropriate message type:
TextforMsgTextPostforMsgPostCardforMsgInteractiveTemplateforMsgInteractive(requires CardKit)ShareChatforMsgShareCardShareUserforMsgShareUserImage,File,Audio,Media,Sticker(requires prior upload to Lark server)