# Import InviteMember members into your Telegram subscription bot

> Import InviteMember CSV files into your Telegram subscription bot and keep verified Stripe and PayPal paid time.

Source: https://docs.botsubscription.com/getting-started/invite-member-import/

Bring an InviteMember export into your <strong>Telegram</strong> <strong>subscription bot</strong> by sending the CSV files in a private chat with your own bot, then tapping **▶️ Run import**. Members of a <strong>paid Telegram channel</strong> keep the paid time Stripe or PayPal still shows, and this page describes that import only.

## Export the CSV files

In InviteMember, open the project, open its Telegram bot, and use **Export data (CSV)**.

<Frame caption="InviteMember export action for the Telegram bot's CSV files">
  <img
    src="/img/invitemember-export-data-csv.webp"
    alt="InviteMember Telegram bot menu with Export data (CSV) highlighted"
    title="Export InviteMember data as CSV"
  />
</Frame>

The importer accepts any subset of four files and detects each one from the column headers, so the file name is only a hint.

- `users.csv` lists Telegram users, including a numeric user id, name, email, and status.
- `subscriptions.csv` lists recurring Stripe and PayPal subscriptions.
- `payments.csv` lists charges on those subscriptions.
- The one-time and lifetime file is often named `recurring-payments.csv`. A value that starts with `0000-00-00` in its end column means lifetime access.

You can send one file or several, and a users-only file imports contacts without creating memberships.

<Frame caption="Example InviteMember files a Telegram chat can receive">
  <img
    src="/img/invitemember-csv-files.webp"
    alt="CSV files users.csv, payments.csv, and subscriptions.csv in a Telegram chat"
    title="InviteMember CSV files ready to import"
  />
</Frame>

## Send the files to your Telegram subscription bot

Use a private chat with the custom bot that belongs to one project, and you must be the project owner. The shared bot (and group chats) do not start an import.

Send the CSV files there. Send them together as one album and the bot replies once. Files sent one at a time each get a reply, and all join the same import. The reply says the import is staged, names the file types it recognized, and shows **▶️ Run import** and **✖️ Cancel**.

Tap **▶️ Run import**, and the bot says the import has started and that it may take a few minutes. If you do nothing, a staged import is discarded 30 minutes after the last file is uploaded. Each Telegram file must be 20 MB or smaller, and the CSV uses semicolons between columns.

Check progress by typing `/importstatus`. It is owner-only, and it is not shown in the bot menu or `/help`. The reply is a status code such as `completed`, `skipped_duplicate`, or `failed_data`, and it does not list member names. That command sits with the other [Telegram bot commands](https://docs.botsubscription.com/commands/).

The project owner can also upload the same files and start the run through the owner import at `/v2/projects/{project_id}/import/`. A project API key is rejected, and that route is not part of the public project API.

## What a verified import keeps

Connect the same [Stripe](https://docs.botsubscription.com/payments/stripe/) or [PayPal](https://docs.botsubscription.com/payments/paypal/) account InviteMember used. A subscription is matched only when it carries the member's Telegram user id (Stripe `metadata.userId`, PayPal `custom_id`); otherwise it waits for a later run, and a one-time payment without it is not imported. The CSV is treated as a claim. Access is created only after the live provider confirms the subscription or the payment, and rows for any other payment method are skipped.

Active Stripe and PayPal subscriptions get a membership. The end date is the provider's current period end, or the trial end while a trial is still running. It is not copied from the CSV status. Past-due subscriptions keep a membership through that same provider end, which can already have passed. Cancelled and expired subscriptions are stored as history and do not get a current membership.

A one-time payment gets a membership when the provider shows the charge as captured, and not fully refunded or disputed. The payer, amount, and currency must match the export. A PayPal payment whose dispute status can't be confirmed is held for review. A dated grant uses the export's end time, and lifetime access has no end date. A later import will not shorten a membership that already lasts longer.

The import creates or reuses a plan from the export's name, price, currency, and period. It does not attach Telegram chats or Discord roles. Imported plans need their chats or roles mapped in the dashboard before members get access.

The import does not move Stripe or PayPal webhooks. After a completed import, pointing those webhooks at BotSubscription is a separate step done with support, not a control the owner clicks in Telegram or the dashboard. The only call is `POST /v2/projects/{project_id}/import/handover`, and it is allowed only after the import has completed. [Contact BotSubscription support](https://docs.botsubscription.com/support/contacting-the-support/) to run it. Until that handover, new renewal notices can still arrive at the previous setup.

## Limits of this subscription bot import

- Telegram user ids only. The import does not create Discord members or assign Discord roles.
- Stripe and PayPal only. Other methods in the file are skipped.
- The project owner, a private chat, and a custom single-project bot. The shared bot (and group chats) do not start an import.
- Rows the provider cannot confirm are skipped or left for a later run. Send the same files again to retry those rows. An identical successful import is not applied twice.
- A row with extra columns is dropped, because a shifted row would put values in the wrong fields.
- Imported history does not send invoices, webhooks, or member messages for the old charges.

<Info>
The import records memberships. It does not add people to a Telegram chat by itself. After you map plan targets, members still join with the bot's invite link.
</Info>
