platypush.message.event.chat.slack

class platypush.message.event.chat.slack.SlackAppMentionReceivedEvent(name, bases, namespace, **kwargs)[source]

Event triggered when a message that mentions the app is received on a monitored resource.

class platypush.message.event.chat.slack.SlackEvent(name, bases, namespace, **kwargs)[source]

Base class for Slack events.

__init__(*args, timestamp: Optional[Union[int, float, datetime.datetime]] = None, **kwargs)[source]
Parameters

timestamp – Event timestamp.

class platypush.message.event.chat.slack.SlackMessageDeletedEvent(name, bases, namespace, **kwargs)[source]

Event triggered when a message is deleted from a monitored resource.

class platypush.message.event.chat.slack.SlackMessageEditedEvent(name, bases, namespace, **kwargs)[source]

Event triggered when a message is edited on a monitored resource.

class platypush.message.event.chat.slack.SlackMessageEvent(name, bases, namespace, **kwargs)[source]

Base class for message-related events.

__init__(*args, text: str, user: str, channel: Optional[str] = None, team: Optional[str] = None, icons: Optional[dict] = None, blocks: Optional[Iterable[dict]] = None, **kwargs)[source]
Parameters
  • text – Message text.

  • user – ID of the sender.

  • channel – ID of the channel.

  • team – ID of the team.

  • icons – Mapping of the icons for this message.

  • blocks – Extra blocks in the message.

class platypush.message.event.chat.slack.SlackMessageReceivedEvent(name, bases, namespace, **kwargs)[source]

Event triggered when a message is received on a monitored resource.