# Community access (/merchants/shop-communities)

Community access lets a Shop product or a [payment link](/merchants/payment-links) come with a place in your
Telegram group or channel, or a role in your Discord server. You connect the community once on **Communities**, tick
it on the products and links that should open it, and Fianto's bot lets each paying buyer in. When a buyer's
subscription ends, the bot takes back the seat or the role it gave. It works for products bought in your shop, free
products included, and for payments through a payment link. A checkout session your own code creates gives no
community access. Community access is not available in Test mode.

![The Communities page: Connect a community with Connect Telegram and Connect Discord, and connected communities: a Telegram channel tagged Needs attention with the sentence that says how to fix it, and a Discord server tagged Active with its roles, members with access and the buttons Re-check, Choose roles, Members and Disconnect.](/screenshots/shop/communities.webp)

*Communities with one connected Telegram group.*

## Before you start [#before-you-start]

* Your account is approved. Before approval the page shows **Connect Telegram** and **Connect Discord**
  turned off, with "Available after approval".
* You have the shop products or the payment links you want to give access with. See
  [Products and delivery](/merchants/shop-products) and [Create a payment link](/merchants/payment-links-create).
* For Telegram: a supergroup or a channel (not a basic group) where you are the owner, or an admin who
  can invite users and ban users.
* For Discord: a server you can add a bot to.

## Steps [#steps]

**Step 1.**

### Open Communities [#open-communities]

In the sidebar, under **Tools**, click **Communities**. The page reads "Connect a Telegram
group or a Discord server, then give buyers of a product access to it."

**Step 2.**

### Connect a Telegram group or channel [#connect-a-telegram-group-or-channel]

Click **Connect Telegram**. The card shows two steps:

1. "Open Fianto’s bot in Telegram and tap Start."
2. "Choose the group or channel to connect. You must be an admin there."

Click **Open Telegram** (on a computer you can also scan the code shown) and tap **Start**. The bot
answers "Choose the group or channel to connect. Telegram will ask you to confirm the rights the bot
needs." with two buttons, **Choose a group** and **Choose a channel**. Pick the chat. The bot needs the
right to invite users and the right to ban users there; it uses the ban right only to remove people,
never to ban them.

The bot then sends you a confirmation link: "Almost done — confirm in your fianto dashboard to connect
\<chat> to \<your shop>: \<link>". The dashboard card meanwhile says "Open the link the bot sent you in
Telegram to finish." Open the link where you are signed in to your dashboard. It asks
"Connect \<chat> (Telegram) to your shop?": click **Confirm**. The dashboard says "Connected \<chat>".

![Connect Telegram in progress: the two steps, an Open Telegram button, Waiting for you to finish in Telegram…, and a QR code with Or scan this code with your phone.](/screenshots/shop/communities-connect.webp)

The connect link works for 10 minutes and the confirmation link for 15 minutes. If a link has run out,
start again with **Connect Telegram**.

**Step 3.**

### Connect a Discord server and choose the roles you sell [#connect-a-discord-server-and-choose-the-roles-you-sell]

Click **Connect Discord** ("Taking you to Discord…"). Discord's own page asks which server to add
Fianto's bot to, with two permissions: create invites and manage roles. Approve it. Discord sends you
back to Communities, which asks "Connect \<server> (Discord) to your shop?": click **Confirm**. It says
"Connected \<server>. Choose the roles you sell." and opens **Roles you sell**: "Buyers of a product get
the roles you choose for it. Roles above the bot’s role can’t be given."

Tick the roles and click **Save roles** ("Roles saved"). A role you can't tick says why: "Move the
fianto role above \<role> in Server Settings → Roles", "Everyone can’t be sold" or "Managed by an
integration". **Choose roles** on the community opens the same list later.

On Discord, Fianto only gives and takes away roles. It never removes anyone from your server.

**Step 4.**

### Give a product community access [#give-a-product-community-access]

In the editor (**Edit shop**), open the **Products** tab and click the product. Under "After a
purchase", "Community access" lists your connected communities: a Telegram group or channel by its name,
a Discord role as "\<server> · \<role>". Its help reads "Buyers of this product are invited to the groups
and roles you tick." Tick the ones this product opens, then click **Save** under "After a purchase"
("Delivery saved"). Like the rest of the delivery, it applies at once: no publish needed.

**+ Connect a group** opens Communities; once you have connected one, the page offers to take you back
to the product.

![A product's After a purchase settings with the Community access field: a ticked Telegram group and a Discord role shown as server · role, and + Connect a group.](/screenshots/shop/editor-community-access.webp)

**Step 5.**

### Give a payment link community access [#give-a-payment-link-community-access]

When you create a link, open **Advanced options** in the New link dialog; on an existing link, click **Edit**. The
"Community access" field lists your connected communities, with the help "Customers who pay through this link are
invited to the groups and roles you tick." Tick at most 10 and save the link. When you pick an existing price, the
field starts with the communities that price's product opens in your shop. The link's page then shows a "Community
access" row with what it gives, or "None". See [Payment links](/merchants/payment-links).

## What buyers see [#what-buyers-see]

Once a purchase is paid, the buyer's receipt page on your shop, or the checkout page's receipt for a payment link,
has "Your communities", with one card per group or role and a **Join on Telegram** or **Join Discord** button. Each card says "Only your
Telegram account can use this" (or Discord) and either "Your access has no end date." (one-time and
free products, and one-time payments through a link) or "Your access lasts while your subscription is active."
(subscriptions).

* **Telegram**: the button opens the bot, which sends the buyer a personal link to join and approves
  their request. A link forwarded to another Telegram account is refused.
* **Discord**: Discord asks the buyer to sign in and allow Fianto to add them to your server. They join
  with the role, or get the role if they are already in the server.

If the buyer gave an email, Fianto's email about the shop purchase adds a line per community, such as
"Join \<name> on Telegram: \<receipt link>". A card payment through a payment link gets a receipt email,
"Receipt: \<amount> to \<your business>", with a "Join your \<business> community" link. Only the newest
receipt email's link works; an older one says "This link no longer works. Use the Join link in your newest receipt
email, or contact the merchant." Buyers of a paid product or a subscription can also join from
the purchase's page in Fianto's [payer portal](/payers/buying-from-a-shop), and so can payment link buyers who paid
from a wallet. A buyer can move their
access to another Telegram or Discord account with "Use a different account" on the receipt: the old
account loses it.

See [Buying from a shop](/payers/buying-from-a-shop) for the buyer's side.

## When access ends [#when-access-ends]

* **One-time payments and free products**: access does not end, unless you remove the member yourself.
* **Subscriptions**: when the subscription ends, Fianto removes the member. While it is "Past due" (a
  renewal failed and Fianto is still trying), they keep access. On Telegram the bot removes them from
  the chat without banning them, so they can join again if they buy again, and tells them "Your access
  to \<name> has ended."; on Discord it takes away the role and they stay in your server.
* **Only people Fianto let in are removed.** Someone who was already in the chat, or already had the
  role, when they joined through their purchase keeps it.
* The message, link and code you deliver with the product are not taken back: see
  [Products and delivery](/merchants/shop-products).

Unticking a community on a product or a link, or a role in "Roles you sell", takes nothing away from people who
already have access: only new buyers no longer get it.

## Members [#members]

**Members** on a community opens its list: filter by "All", "Waiting to join", "In", "Left" or
"Removed", or search by "Handle or product". The columns are Handle ("Not linked yet" until the buyer
links an account), Product, Purchased and Status. A removed member's status says why: "subscription
ended", "removed by you" or "switched account".

![A community's Members list: filter chips All, Waiting to join, In, Left, Removed, a search box, and rows with a Telegram handle, the product, the purchase date, the status In and a Remove button.](/screenshots/shop/communities-members.webp)

**Remove** asks "Remove \<handle>?": "They lose access to this community now. They can’t join again with
this purchase." When another purchase still gives them access, the dashboard adds "Still has access
through \<product>."

## When something needs fixing [#when-something-needs-fixing]

Each community shows "Active", "Needs attention" or "Disconnected". When Fianto can no longer manage a
community, it shows what to fix, for example "Give the bot the right to invite users, then check
again.", and emails you "Your community \<name> needs attention", once per problem, at the address for
sale emails (or your account email). Fix it in Telegram or Discord, then click **Re-check**.

While a community needs attention, members keep their access, and buyers see "Joining is temporarily
unavailable. The shop has been notified." The product's "Community access" field marks it "Needs
attention".

## Disconnect [#disconnect]

**Disconnect** asks "Disconnect \<name>?": "Members keep their access. Fianto’s bot stops managing
this community." Tick "Also remove Fianto’s bot from it" to make the bot leave the chat or server too, then click
**Disconnect** (or **Keep it**). After that, buyers can't join through it and Fianto removes no one from
it, not even when a subscription ends. Its Members list stays. Connecting the same group or server again
brings it back.

## Check it worked [#check-it-worked]

> On Communities, the community shows "Active" and how many products and payment links use it, such as "Used by 1
> product and 1 payment link". The product's receipt
> page shows "Your communities" once a purchase is paid. Once the buyer taps Join, the community's Members
> list shows them, "Waiting to join" until they are in, then "In".

## Troubleshooting [#troubleshooting]

| You see | Why | Fix |
|---|---|---|
| "This is a basic group. Convert it to a supergroup in Telegram (Group settings, then Group type), or use a channel, then connect again." | Fianto connects only supergroups and channels. | Convert the group, or use a channel, then click Connect Telegram again. |
| "Only an owner or admin of the chat can connect it. Ask one to connect it, or make your account an admin." | Your Telegram account is not the owner, or not an admin who can invite and ban users. | Ask the owner to make you such an admin, or to connect it. |
| "The bot could not reach this chat. Add the bot as an admin with the right to invite and ban users, then connect again." | The bot is not an admin of the chat with both rights. | Make the bot an admin with both rights, then connect again. |
| "Couldn't message you in Telegram — start the bot and try again" | The bot could not send you the confirmation link. | Open the bot in Telegram, tap Start, then connect again. |
| "This confirmation link has expired or was already used. Start the connect again." | The link is older than 15 minutes, was used, or was cancelled. | Click Connect Telegram or Connect Discord again. |
| "This chat is already connected to another fianto shop." or "That Discord server is already connected to another account." | Another Fianto account manages it. | Disconnect it from that account first. |
| "You cancelled in Discord. Nothing was connected." | You closed or refused Discord's page. | Click Connect Discord again. |
| "The bot is no longer in this community. Add it back, then press Re-check (or connect the community again)." | The bot was removed from the chat or server. | Add the bot back, then click Re-check. |
| "Move the bot role above the role you sell, then check again." | In Discord, the role you sell sits above the bot's role. | In Server Settings → Roles, drag the bot's role above it, then click Re-check. |
| "The role was deleted in Discord. Pick another role for your products." | A role you sell no longer exists. | Click Choose roles and pick another role, then tick it on your products. |
| "No platform is set up yet. Check back soon." | Community access is not available on Fianto right now. | Check back later. |

## See also [#see-also]

- [Create a payment link](/merchants/payment-links-create): Where you tick a community for a link.

- [Products and delivery](/merchants/shop-products): Where you tick a community for a product.

- [After a shop sale](/merchants/shop-after-a-sale): The receipt, the emails and where a sale shows up.

- [Buying from a shop](/payers/buying-from-a-shop): What your buyers see, joining included.