GitHub

API reference for Part.

One message a call created.

  • markdown is what went out, with a reopened or closed code fence and an unattached note included; empty for the overflow file.
  • text is the slice of the input the part carries: the text of every part, in order, is the input.
  • transport is "post" for a part from post and a streamed part posted once to an adapter without edit, "edit" for one written by post-then-edit, "native" for one written by the adapter's native stream.

Attributes

AttributeTypeDescription
message_idstr
timestampdatetime
markdownstr
textstr
kindLiteral['text', 'overflowFile']
transportLiteral['post', 'edit', 'native']

Functions

__init__

__init__(message_id, timestamp, markdown, text, kind, transport) -> None
ParameterTypeDescription
message_idstr
timestampdatetime
markdownstr
textstr
kindLiteral['text', 'overflowFile']
transportLiteral['post', 'edit', 'native']