Package papyon :: Module conversation

Module conversation

source code

Conversation

This module contains the classes needed to have a conversation with a contact.

Classes
  ConversationInterface
Interface implemented by all the Conversation objects, a Conversation object allows the user to communicate with one or more peers
  ConversationMessage
A Conversation message sent or received
  TextFormat
Functions
ConversationInterface
Conversation(client, contacts)
Factory function used to create the appropriate conversation with the given contacts.
source code
Function Details

Conversation(client, contacts)

source code 

Factory function used to create the appropriate conversation with the given contacts.

This is the method you need to use to start a conversation with both MSN users and Yahoo! users.

Parameters:
  • contacts ([Contact, ...]) - The list of contacts to invite into the conversation
Returns: ConversationInterface
a Conversation object implementing ConversationInterface

Attention: you can only talk to one Yahoo! contact at a time, and you cannot have multi-user conversations with both MSN and Yahoo! contacts.