NTFYMessage¶
-
class ntfpy.
NTFYMessage
(message: str, id: str, timestamp: int, topic: str, title: str | None = None, priority: int | None = None, tags: Sequence[str] | None = None, click: str | None = None, attach: Any | None = None, actions: Any | None = None, email: str | None = None, delay: str | None = None, icon: str | None = None)¶ - Variables:
message (
str
) – message’s contentid (
int
) – message’s idtimestamp (
int
) – message’s timestamp (unix)topic (
str
) – message’s topictitle (Optional[
str
]) – message’s titlepriority (Optional[
int
]) – message’s prioritytags (Optional[Sequence[
str
]]) – message’s tagsclick (Optional[
str
]) – message’s click urlattach (Optional[
Any
]) – message’s attachmentsactions (Optional[
Any
]) – message’s actionsemail (Optional[
str
]) – message’s emaildelay (Optional[
str
]) – message’s delayicon (Optional[
str
]) – message’s icon
NTFYPushMessage¶
-
class ntfpy.
NTFYPushMessage
(message: str, title: str | None = None, priority: Literal[1, 2, 3, 4, 5] | None = None, tags: Sequence[str] | None = None, click_url: str | None = None, attach: NTFYUrlAttachment | None = None, actions: Sequence[NTFYAction] | None = None, email: str | None = None, delay: str | None = None, icon_url: str | None = None)¶ - Variables:
message (
str
) – message’s contenttitle (Optional[
str
]) – message’s titlepriority (Optional[
int
]) – message’s prioritytags (Optional[Sequence[
str
]]) – message’s tagsclick_url (Optional[
str
]) – message’s click urlattachment (Optional[
Any
]) – message’s attachmentsactions (Optional[
Any
]) – message’s actionsemail (Optional[
str
]) – message’s emaildelay (Optional[
str
]) – message’s delayicon_url (Optional[
str
]) – message’s icon url
-
addAction
(action: NTFYAction)¶ - Parameters:
action (
NTFYAction
) – action to add
-
removeAction
(action: NTFYAction)¶ - Parameters:
action (
NTFYAction
) – action to remove