Skip to content

tags

Models for Tag-related operations.

Classes

TagModel

Bases: BaseModel

Represents a tag assigned to a chat or other entity.

Attributes

id
id: str

The unique identifier for the tag. Usually derived from the name (lowercase, spaces replaced with underscores).

name
name: str

The display name of the tag.

user_id
user_id: str

The ID of the user who created this tag.

meta
meta: Optional[dict] = None

Optional metadata associated with the tag.

Dict Fields

No specific keys are currently defined or used in the reference source code. The meta field is available for future extensibility but has no documented usage patterns.

TagChatIdForm

Bases: BaseModel

Form for associating a tag with a chat ID.

Note: This model is defined in the backend but appears to be unused in the current codebase.

Attributes

name
name: str

The name of the tag.

chat_id
chat_id: str

The ID of the chat to associate with the tag.