A fork of https://github.com/teal-fm/piper
at main 27 lines 912 B view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package chat 4 5// schema: chat.bsky.convo.deleteMessageForSelf 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/xrpc" 11) 12 13// ConvoDeleteMessageForSelf_Input is the input argument to a chat.bsky.convo.deleteMessageForSelf call. 14type ConvoDeleteMessageForSelf_Input struct { 15 ConvoId string `json:"convoId" cborgen:"convoId"` 16 MessageId string `json:"messageId" cborgen:"messageId"` 17} 18 19// ConvoDeleteMessageForSelf calls the XRPC method "chat.bsky.convo.deleteMessageForSelf". 20func ConvoDeleteMessageForSelf(ctx context.Context, c *xrpc.Client, input *ConvoDeleteMessageForSelf_Input) (*ConvoDefs_DeletedMessageView, error) { 21 var out ConvoDefs_DeletedMessageView 22 if err := c.Do(ctx, xrpc.Procedure, "application/json", "chat.bsky.convo.deleteMessageForSelf", nil, input, &out); err != nil { 23 return nil, err 24 } 25 26 return &out, nil 27}