woob.capabilities.chat

class woob.capabilities.chat.CapChat

Bases: woob.capabilities.base.Capability

Websites with a chat system.

iter_chat_messages(_id=None)

Iter messages.

Parameters

_id (str) – optional parameter to only get messages from a given contact.

Return type

iter[ChatMessage]

send_chat_message(_id, message)

Send a message to a contact.

Parameters
  • _id (str) – ID of recipient

  • message (str) – message to send

Raises

ChatException

exception woob.capabilities.chat.ChatException

Bases: woob.capabilities.base.UserError

Exception raised when there is a problem with the chat.

class woob.capabilities.chat.ChatMessage(id_from, id_to, message, date=None, url=None)

Bases: woob.capabilities.base.BaseObject

Message on the chat.

Variables
  • id_from – (str) ID of sender

  • id_to – (str) ID of recipient

  • message – (str) Content of message

  • date – (date, datetime) Date when the message has been sent