chitose.app.bsky.richtext package#

Submodules#

chitose.app.bsky.richtext.facet module#

class chitose.app.bsky.richtext.facet.ByteSlice(byte_start: int, byte_end: int)#

Bases: Object

A text segment. Start is inclusive, end is exclusive. Indices are for utf8-encoded strings.

to_dict() dict[str, Any]#
class chitose.app.bsky.richtext.facet.Facet(index: ByteSlice, features: list[Mention | Link])#

Bases: Object

to_dict() dict[str, Any]#

Bases: Object

A facet feature for links.

to_dict() dict[str, Any]#
class chitose.app.bsky.richtext.facet.Mention(did: str)#

Bases: Object

A facet feature for actor mentions.

to_dict() dict[str, Any]#

Module contents#

class chitose.app.bsky.richtext.Richtext_(call: Callable[[str, list[tuple[str, str | None | int | list[str]]], bytes | dict | None, dict[str, str]], bytes], subscribe: Callable[[str, list[tuple[str, str | None | int | list[str]]], Callable[[str | bytes], None]], None])#

Bases: object

We recommend calling methods in this class via the chitose.BskyAgent class instead of creating instances of this class directly.