Chat
Messages to the administrator or private conversations between app participants.

The Chat block is a feed of messages with a composer under it. You could always assemble something similar out of a list, a field and a button; what never came out was the part that makes a conversation read as one: bubbles of different widths on two sides, a feed that keeps itself at the bottom, Enter to send, and a composer that does not slide under the keyboard.
Between members. Select this mode on the block and choose the members table and the name/photo columns. On a member card add a button with the Message a member action: choose the same table, pass the current record {{item}}, and select the screen containing the chat block. On a separate detail screen pass the selected record variable, such as {{selected}}.

Message the author of a trip or application. Keep users as the members table, choose poputchiki under Record from table, and pass the entire trip as {{selectedTrip}} under Which record. The server resolves its verified author and member profile. An organizer can similarly message a participant: choose the trip participation table and pass {{item}} from its list. The record must have been created by that visitor in the app and be visible to the sender. If participation records are private, only their owner and an assigned table administrator can list and address them.
Both peers need profiles with verified owners in the members table. When addressing someone through a trip or application, users can stay private. Telegram/MAX IDs entered into a record do not prove authorship; for manually added or imported records use an accessible profile record. In the published app a person sees conversation history and unread messages and can block a peer. No message table is needed. App owners and table administrators do not receive access to other people’s private conversations.
A counter beside the message icon. Enter {{chat.badge}} in the header’s or bottom navigation item’s Count badge field. It shows the sum of unread incoming messages across all private conversations, hides at zero and displays “99+” above 99. Use {{chat.unread}} for the exact number in text or visibility conditions. For example, show a separate badge block when “chat.unread is greater than 0”. The counter refreshes about every three seconds while the app is visible, on return and after reading. Messages are marked read when visible in an open conversation; opening the inbox does not clear them. Works in Telegram and MAX. Shared history between messengers requires linking the accounts through a verified phone number in the app. No separate message table or Record counter block is needed.
With the administrator. For this mode, fill in:

- Chat table — an ordinary table with the “everyone writes their own, the admin sees all” access mode. A visitor sees their own thread, the author sees every one.
- Text column and “from” column. The block fills the second one itself: both sides live in the visitor’s rows, so what is written is the only way to tell them apart.
- Where the other person is remembered (for the author screen) — on the author’s screen only: the app remembers the person picked from the list here, and the feed shows their thread. A visitor leaves it empty — they have a single thread.
- While nothing is remembered there the author sees a list of conversations: the name, the last line, the time, and a dot on the ones waiting for an answer. A tap opens one; remembering an empty value there with the Remember action returns to the list.
- Feed height. A number keeps a feed of that height in the middle of a page. Zero makes a chat screen: the feed takes whatever is left of the window, scrolls on its own, and the composer stays at the bottom, above the keyboard.
The gestures are the ones people know from messengers. Swipe a message to the right to answer it: the quote sits above the composer, travels with the answer and then shows inside the bubble. Press and hold opens a row of reactions — one tap sets it, the same tap clears it. Both live in the conversation row itself (replyText, replyFrom, reaction), so they are visible in the data panel too.
The Tell the bot about a message tick works both ways and picks the recipient itself: a visitor’s line notifies the app owner, and the author’s answer notifies the visitor it answers. The owner’s bot does the writing, so a notice only reaches someone who has pressed Start in it at least once; silence in that case is not a failure.
Who stands in front of the feed is decided by rights, not by the block: the app’s author and whoever you made an admin of this table see and run other people’s threads; everybody else sees their own. The admin role is set in the table of people where each has a single row: “an admin is the one whose Role column says Coach”.
Where: Block palette → Data Display → Chat.