chat.bsky.moderation.get_message_context

class atproto_client.models.chat.bsky.moderation.get_message_context.Params

Bases: ParamsModelBase

Parameters model for chat.bsky.moderation.getMessageContext.

field after: int | None = 5
field before: int | None = 5
field convo_id: str | None = None
field max_interleaved_system_messages: int | None = None
Constraints:
  • ge = 0

  • le = 1000

field message_id: str [Required]

Message id.

class atproto_client.models.chat.bsky.moderation.get_message_context.ParamsDict

Bases: TypedDict

after: typing_extensions.NotRequired[int | None]

Number of user messages after the target to include. System messages between the target and the latest returned user message are also included, capped per gap by maxInterleavedSystemMessages. If there are no user messages after the target, up to maxInterleavedSystemMessages system messages immediately following the target are returned instead.

before: typing_extensions.NotRequired[int | None]

Number of user messages before the target to include. System messages between the earliest returned user message and the target are also included, capped per gap by maxInterleavedSystemMessages. If there are no user messages before the target, up to maxInterleavedSystemMessages system messages immediately preceding the target are returned instead.

convo_id: typing_extensions.NotRequired[str | None]

this field will eventually be required.

Type:

Conversation that the message is from. NOTE

max_interleaved_system_messages: typing_extensions.NotRequired[int | None]

Maximum number of system messages to include per gap between consecutive returned messages (and per side when there are no user messages on that side). Within a gap, the system messages closest to the earlier message are kept.

message_id: str

Message id.

class atproto_client.models.chat.bsky.moderation.get_message_context.Response

Bases: ResponseModelBase

Output data model for chat.bsky.moderation.getMessageContext.

field messages: List[models.ChatBskyConvoDefs.MessageView | models.ChatBskyConvoDefs.SystemMessageView] [Required]