Class TokenUtil


  • public final class TokenUtil
    extends Object
    • Constructor Detail

      • TokenUtil

        public TokenUtil()
    • Method Detail

      • getSelfId

        public static long getSelfId​(String token)
        Extracts the bot user's ID from the token used to authenticate requests.
        Parameters:
        token - The bot token used to authenticate requests.
        Returns:
        The bot user's ID.