App Access Token with Scopes?

EventSub over webhooks or conduits.

The Chat Send API also supports using an app access token.

An example:

To connect bot foo to freds channel in read/write mode

  • Generate a user access token for foo with user:read:chat and user:write:chat and user:bot
  • Ask fred to authenticate, generating a user access token with channel:bot

Once thats both done foo can read/write to freds channel using the app access token on a webhook or a conduit. And use the same app access token to send on the API

Generally in my opinion Chat Bots will use a conduit where the shard(s) are attached to a websocket.

So a conduit will require an app access token.
The Send Chat Endpoint supports both token types, as it means that your bot doesn’t have to handle multiple tokens, just the app access token to sending messages with and assigning shard to a websocket via the conduit API’s which need an app access token.

Sure you’ll still need the bot’s own user token if your bot is doing moderation actions but thats a different discussion

1 Like