getSelfOrNull

open suspend override fun getSelfOrNull(): User?(source)

Requests the User this bot represents, returns null when the user isn't present.

Throws

RequestException

if something went wrong while retrieving the user.