@@ -231,6 +231,9 @@ type MessageSearchParams struct {
231231 // Example: use "dinner" not "dinner plans", use "sick" not "health issues". If
232232 // omitted, returns results filtered only by other parameters.
233233 Query param.Opt [string ] `query:"query,omitzero" json:"-"`
234+ // Filter by sender: 'me' (messages sent by the authenticated user), 'others'
235+ // (messages sent by others), or a specific user ID string (user.id).
236+ Sender param.Opt [string ] `query:"sender,omitzero" json:"-"`
234237 // Limit search to specific account IDs.
235238 AccountIDs []string `query:"accountIDs,omitzero" json:"-"`
236239 // Limit search to specific chat IDs.
@@ -249,9 +252,6 @@ type MessageSearchParams struct {
249252 //
250253 // Any of "any", "video", "image", "link", "file".
251254 MediaTypes []string `query:"mediaTypes,omitzero" json:"-"`
252- // Filter by sender: 'me' (messages sent by the authenticated user), 'others'
253- // (messages sent by others), or a specific user ID string (user.id).
254- Sender MessageSearchParamsSender `query:"sender,omitzero" json:"-"`
255255 paramObj
256256}
257257
@@ -280,15 +280,6 @@ const (
280280 MessageSearchParamsDirectionBefore MessageSearchParamsDirection = "before"
281281)
282282
283- // Filter by sender: 'me' (messages sent by the authenticated user), 'others'
284- // (messages sent by others), or a specific user ID string (user.id).
285- type MessageSearchParamsSender string
286-
287- const (
288- MessageSearchParamsSenderMe MessageSearchParamsSender = "me"
289- MessageSearchParamsSenderOthers MessageSearchParamsSender = "others"
290- )
291-
292283type MessageSendParams struct {
293284 // Provide a message ID to send this as a reply to an existing message
294285 ReplyToMessageID param.Opt [string ] `json:"replyToMessageID,omitzero"`
0 commit comments