teamwire_api.organisations

Organisation

class Organisation(object)

Class representing an organisation in the Teamwire platform

Attributes

  • oid: integer. The organisation id
  • name: unicode. The organisation name

Organisations

class Organisations(object)

An accessor for the all the organisations visible to the bot

get_list

 | async get_list()

Coroutine to get list of all organisations visible to the bot These include the organisation of the bot and the organisations of user and group members of the chats involving the bot

Returns

a list of Organisation objects

Raises

exceptions.TWConnectionError in case of network error or timeout exceptions.TWServerError in case of backend-related problems