code: def on_session_start(self, data):
          # pylint: disable=W0613
          
          # Send initial presence
          self.send_presence(ppriority=self._initial_priority)
  
          # Request roster
          self.get_roster()
docs: XMPP session started