Repository navigation
Chat2 Plugin
The Chat2 plugin adds a chat to live streams, channel pages and video pages. Viewers can also send private messages to each other. Chat owners and moderators can run polls, ban users and allow or block image attachments.
Chat2 is a paid add-on, available from the AVideo plugin marketplace.
- Enable the YPTSocket plugin and make sure its server is running. With it, messages arrive instantly. Without it, the chat only checks for new messages from time to time and feels slow.
- Voice and video calls between users also need YPTSocket, with calls enabled in both plugins.
- The Ban From Site action in the chat needs the paid User_Controll plugin.
- Go to Admin Panel → Plugins and find Chat2. If the row shows Install tables, click it first.
- Turn on the switch.
- Click Edit parameters to choose where the chat appears.
| Option (label) | Default | What it does |
|---|---|---|
| Show on Live Streams | on | Chat on live pages |
| Show on Channel Pages | on | Chat on user channel pages |
| Show on Video Pages | on | Chat on video pages |
| Show on Embedded Videos | off | Chat when a video is embedded on another site |
| Show on Mobile Devices | on | Chat on phones and tablets |
| Start Minimized / Start Minimized on Mobile | off | The chat opens closed |
| Show Chat Only for Logged Users | off | Visitors who are not signed in do not see the chat |
| Separate Chat per Lives | on | Each live stream gets a new, empty chat. Turn off to keep one chat per channel. |
| Allow Direct Messages | on | Users can send private messages to each other |
| Enable Voice/Video Calls | on | Users can call each other (needs YPTSocket) |
| Disable Multiple Chat Rooms | off | Removes the More Chat Rooms option from the chat menu |
| Disable Chat Sounds | off | No sound for new messages |
The Chat2 row in Admin Panel → Plugins also has these buttons: Chat Rooms (list of rooms), Manage Attachments and API.
The channel owner, the chat moderators and administrators see extra actions in the chat menu (the ⋮ button at the top of the chat), under Channel Admin:
- Show Super Chats Only
- Poll Opinions (see below)
- Moderators: choose users who can moderate your chat
- Ban From Chat / Remove Ban From Chat, and Manage Bans
- Clear Chat
- Allow Attachments: allow or block images in your room
- Embed Codes and Links: copy the code or link to show the chat on another page
- Open the chat menu (⋮) and select Poll Opinions.
- Fill in Poll Question and at least two Poll Options. Click Add Option for more answers. You can drag the answers to change their order.

- Click Create Poll, then open the My Polls tab.
- Click the green Add to Chat Room button next to the poll. The poll appears in the chat and viewers vote in real time.


Any signed-in viewer can hide the messages of another user:
- Move the mouse over one of that user's messages and click the Ignore User button.
- Their messages are hidden and replaced by "name ignored".
- To show them again, click Unignore User on one of the hidden messages.
This only affects your own view. Other people still see the messages.

- A green Donate button appears at the top of the chat when the channel owner has set a donation link. Donation links are turned on with the
allowDonationLinkoption of the CustomizeUser plugin. - When a viewer donates from their wallet, Chat2 posts the donation in the chat. See Donation from wallet.
Users can send JPG, JPEG, GIF and PNG images in the chat.
In Admin Panel → Plugins → Chat2 → Edit parameters:
- Disable Attachments Globally: no attachments anywhere.
-
maxUploadFilesize: largest image allowed, in MB (default 2 MB). - Use User Groups for Attachments: when off (default), every signed-in user can attach images in rooms that allow it. When on, only user groups with the Can attach files permission can.
- No Attachment Permission Message: the text shown to users who are not allowed.

This needs Use User Groups for Attachments on and the Permissions plugin enabled.
- Go to Admin Panel → Contents → Users Groups.
- Create or edit a group.
- Tick Can attach files (shown with a Chat2 button) and save.
- Add the users to that group.

Administrators and the owner of a room can always attach images in that room.
Room owners open the chat menu (⋮) and use the Allow Attachments checkbox.

- In your room: move the mouse over a message from that user and click the paperclip button (Delete User Attachments in this Chat). This removes all of that user's images from your room.

- Everywhere (administrators): in Admin Panel → Plugins, click Manage Attachments on the Chat2 row, choose the user and click Delete ALL Attachments. This removes all of that user's images from every chat and cannot be undone.

| Message or problem | What to do |
|---|---|
| Messages appear late | Enable YPTSocket and check that the socket server is running. |
| "You don't have permission to attach files" | Add the user to a group with Can attach files, or turn off Use User Groups for Attachments. |
| "Attachments disabled for this chat room" | The room owner must tick Allow Attachments. |
| "Attachment disabled globally" | Turn off Disable Attachments Globally. |
| "File size exceeds the maximum allowed limit" | Use a smaller image or raise maxUploadFilesize. |
| "File extension error" | Only JPG, JPEG, GIF and PNG are accepted. |
Start
Install and update
- Install on Ubuntu 24.04 or 26.04
- Installation Setup Page
- Scheduler cron job (required)
- Set up email
- Use HTTPS
- Own Encoder
- Docker
- Update AVideo
- Backup
- Secure file permissions
- Server command-line tools
- Hidden configuration options
Videos
- Upload a video
- Upload methods — visual guide
- Local Encoder (on your computer)
- Bulk upload from a server folder
- Import a channel
- Publish on YouTube and social media
- Access and payments — visual guide
- Privacy options
- Only for logged-in users
- Resolutions by user group
- Mandatory playback access rules
- Storage options
- Move and protect video files
- Video does not play
Users
Live
- Make a live stream
- Stream with OBS
- Own live server
- One live server, many sites
- Live server install errors
- Live does not play
Plugins
Problems
Other
- Translate your site
- Write a plugin (developers)
- Technical reference (developers and advanced administrators)
Old and retired guides