weboob.capabilities.chat

exception weboob.capabilities.chat.ChatException

Bases: weboob.capabilities.base.UserError

Exception raised when there is a problem with the chat.

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

Bases: weboob.capabilities.base.BaseObject

Message on the chat.
Variables:
  • id_from – (unicode) ID of sender
  • id_to – (unicode) ID of recipient
  • message – (unicode) Content of message
  • date – (date, datetime) Date when the message has been sent
class weboob.capabilities.chat.CapChat

Bases: weboob.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