def sentMessage(ignored, group, avatar):
 l = group.leave()
 l.addCallback(leftGroup, avatar)
 return l

def sentMessage ( ignored , group , avatar ) : l = group . leave ( ) l . addCallback ( leftGroup , avatar ) return l
sent the message successfully .