woob.capabilities.chat
¶
- exception ChatException[source]¶
Bases:
UserError
Exception raised when there is a problem with the chat.
- class ChatMessage(id_from, id_to, message, date=None, url=None)[source]¶
Bases:
BaseObject
Message on the chat.
- Variables
url – (
str
) urlid_from – (
str
) ID of senderid_to – (
str
) ID of recipientmessage – (
str
) Content of messagedate – (
date
,datetime
) Date when the message has been sent
- class CapChat[source]¶
Bases:
Capability
Websites with a chat system.
- iter_chat_messages(_id=None)[source]¶
Iter messages.
- Parameters
_id (str) – optional parameter to only get messages from a given contact.
- Return type
iter[
ChatMessage
]