How can a slack bot find out its own id? Got it. The API method to use is auth.test, it returns user id (plus some extra fields).