DEV Community

Cover image for Nemiling vs InviteMember: Paid Membership Infrastructure for Telegram
Alex Manner
Alex Manner

Posted on

Nemiling vs InviteMember: Paid Membership Infrastructure for Telegram

A subscriber pays for a private Telegram channel and its discussion group. They can read the channel, but the group won't let them in. Before sending another invite, check three things: whether the payment was recorded, whether the plan includes the group, and whether that Telegram account actually joined it.

Nemiling and InviteMember both connect payments to membership in private Telegram channels and groups. The differences show up in where the buyer pays, which payment methods can renew automatically, and what an administrator can see when access or billing goes wrong.

If buyers need a standalone page where they can pay before opening Telegram, InviteMember documents that setup. For a bot-led checkout, compare the payment methods each service supports. A provider you already use may work for one-time payments while requiring manual renewal on that platform. Nemiling payment options · InviteMember payment options

Checkout, payment methods, and access

What to compare Nemiling InviteMember
Where buyers start A Telegram bot the creator connects to the project. The selected payment method determines where checkout happens. Project setup · Payment options A Telegram bot or a hosted membership page. InviteMember documents a web checkout for supported methods and a separate Stars flow in the bot. Telegram integration · Stars setup
What the buyer gets A plan can cover a private channel, a group, or both. The creator gives their bot administrative access to the spaces it manages. Project setup Plans can include private channels and groups. InviteMember issues individual join-request links and checks eligibility when the member requests to join. Plan settings · Join flow
What support can check An owner or authorized admin can run /status USER_ID in the project bot to see the member's plan, expiry, and payment history. Subscriber card In the membership bot, /check USER_ID shows the active plan, payment history, and access status by resource. Subscriber status

For digital goods and services sold inside Telegram bots or Mini Apps, Telegram requires Stars. For methods such as Stripe and PayPal, InviteMember documents a standalone membership website as the checkout route. Verify where payment takes place for the setup you intend to use. Telegram's rules for digital payments · InviteMember's checkout routes

When a member can open the channel but fails to join the group, use their numeric Telegram ID to look up the subscription. If the plan includes the group, check that the bot can approve join requests in that group and that the member used the correct account. For a test purchase, verify membership in each chat using the member list or getChatMember if you operate an admin bot in the chat. Treat an API error as an unknown result. Telegram Bot API

What happens at the next billing date

Nemiling lists YooKassa, Robokassa, Prodamus, and CloudPayments for automatic renewal. Its documentation describes renewal attempts a day before expiry and at expiry, and lets the subscriber stop auto-renewal in the project bot. An administrator can also stop renewal or end access immediately from the subscriber card. Nemiling recurring payments · Subscriber card

InviteMember documents recurring billing through Stripe and PayPal. A payment method that lacks recurring support can result in a single charge even when the plan is marked as recurring. Canceling from the bot or membership page keeps access through the due date. InviteMember also documents immediate removal when a subscription is canceled on the provider's site and the change reaches the platform. For failed renewals, check the PayPal grace-period settings in InviteMember or the retry settings in Stripe. InviteMember plan settings · Cancellation routes · Grace periods

Test cancellation and payment failure with separate accounts. After cancellation, confirm auto-renewal is off and look for any attempted charge, including a declined one. Check that access lasts through the paid period and ends afterward. For payment failure, leave auto-renewal enabled and use a provider test flow that explicitly supports a failed renewal, if available. Record the first decline, any retry, and when the account loses access in each chat. A failed renewal during a configured grace period can leave access active while the provider retries. InviteMember project testing · InviteMember grace periods

Changing the price for new members

Suppose the monthly price goes from $10 to $15 and current members keep their $10 renewal. The figures below are sample inputs. For a real test, use the currency and billing period supported by your chosen integration.

  • Nemiling. Archive the old plan and create a new one at the higher price. The docs say automatic renewals continue on the archived plan. Editing the old plan's price directly changes the amount of future automatic renewals on that plan. Nemiling recurring payments
  • InviteMember. The original plan's price is fixed. Duplicate the plan, set the new price, disable the old plan, and enable Allow disabled plan renewal on it. The docs also mention previous customers in connection with this setting. If only active subscribers should get the old price, test what an account with an expired subscription can buy. InviteMember plan settings

Verify that the new plan contains the same chats. Then try the old sales link with an account that has never subscribed. If it can still buy the old plan, fix that route before announcing the new price. A separate account already on the old plan should renew at $10, and a new account should pay $15. Record the plan ID and the paid-through date as well as the amount.

A local Python check for billing records

Use one provider and one test subscription per account in a private test project. For each test account, collect the provider's attempts and confirmed charges for the relevant purchase or renewal window. Record the final subscription status and paid-through date from the platform. In the example, the canceled account has a declined renewal attempt after cancellation. The case should fail even though no money was collected.

Save the code as check_membership_billing.py and run python3 check_membership_billing.py. It needs Python 3.10+ and runs locally.

The input is a small set of billing records you prepare. Map each record to a purchase or renewal and to a paid, declined, or pending outcome. Use the payment ID for a confirmed charge and a distinct attempt ID for each failed or pending attempt. If an attempt later succeeds, use its final outcome in this sample. Use the platform's subscription record to match the provider charge to a Telegram account and plan. If your view shows plan names in place of IDs, use distinct labels for the two plan versions. Record the amount before tax in whole minor units, such as cents, and use UTC timestamps.

For cancellation, the check starts when the cancellation took effect. Set the end after the relevant scheduled charge and retry window. The end timestamp is exclusive. Set complete=True only after reviewing provider records for that entire interval. The example assumes no attempt was already in progress when cancellation took effect.

from dataclasses import dataclass
from datetime import datetime, timezone


def utc(year, month, day):
    return datetime(year, month, day, tzinfo=timezone.utc)


@dataclass(frozen=True)
class Event:
    event_id: str
    account: str
    plan: str
    at: datetime
    kind: str
    money: tuple[str, int] | None = None


PURCHASE_KINDS = {"purchase_paid", "purchase_declined", "purchase_pending"}
RENEWAL_KINDS = {"renewal_paid", "renewal_declined", "renewal_pending"}
KNOWN_KINDS = PURCHASE_KINDS | RENEWAL_KINDS


def audit(account, plan, start, end, events, complete, *,
          expected_charge=None, renewal_enabled=None,
          canceled_at=None,
          paid_until=None, expected_paid_until=None):
    if not complete:
        return "UNVERIFIED: incomplete evidence"

    checking_cancellation = expected_charge is None
    if checking_cancellation:
        if canceled_at is None or renewal_enabled is None:
            return "UNVERIFIED: missing cancellation evidence"
        start = canceled_at
    elif paid_until is None or expected_paid_until is None:
        return "UNVERIFIED: missing paid-through time"
    if start >= end:
        return "UNVERIFIED: invalid observation window"

    by_id = {}
    for event in events:
        if event.account != account or not start <= event.at < end:
            continue
        if event.kind not in KNOWN_KINDS:
            return f"UNVERIFIED: unknown billing record type {event.kind}"
        if event.event_id in by_id and by_id[event.event_id] != event:
            return "FAIL: conflicting records for the same event ID"
        by_id[event.event_id] = event

    if checking_cancellation:
        if renewal_enabled:
            return "FAIL: auto-renewal is still enabled"
        if any(event.kind in RENEWAL_KINDS for event in by_id.values()):
            return "FAIL: renewal attempted after cancellation"
        return "PASS"

    charges = [
        (event.plan, event.kind, event.money)
        for event in by_id.values()
        if event.kind in {"purchase_paid", "renewal_paid"}
    ]
    if charges != [(plan, *expected_charge)]:
        return f"FAIL: unexpected confirmed charges {charges}"
    if paid_until != expected_paid_until:
        return "FAIL: unexpected paid-through time"
    return "PASS"


start = utc(2026, 12, 4)
charge_day = utc(2026, 12, 5)
end = utc(2026, 12, 7)

events = [
    Event("e1", "existing", "v1", charge_day, "renewal_paid", ("USD", 1000)),
    Event("e2", "new", "v2", charge_day, "purchase_paid", ("USD", 1500)),
    Event("e3", "canceled", "v1", charge_day, "renewal_declined"),
]

checks = {
    "existing": audit(
        "existing", "v1", start, end, events, True,
        expected_charge=("renewal_paid", ("USD", 1000)),
        paid_until=utc(2027, 1, 6), expected_paid_until=utc(2027, 1, 6),
    ),
    "new": audit(
        "new", "v2", start, end, events, True,
        expected_charge=("purchase_paid", ("USD", 1500)),
        paid_until=utc(2027, 1, 5), expected_paid_until=utc(2027, 1, 5),
    ),
    "canceled": audit(
        "canceled", "v1", start, end, events, True,
        renewal_enabled=False, canceled_at=utc(2026, 12, 3),
    ),
}

for name, result in checks.items():
    print(f"{name}: {result}")

if any(result.startswith("FAIL") for result in checks.values()):
    raise SystemExit(1)
if any(result.startswith("UNVERIFIED") for result in checks.values()):
    raise SystemExit(2)
Enter fullscreen mode Exit fullscreen mode
existing: PASS
new: PASS
canceled: FAIL: renewal attempted after cancellation
Enter fullscreen mode Exit fullscreen mode

The existing member was paid through December 6 and is expected to renew through January 6. The new member buys on December 5 and is expected to have access through January 5. The third member canceled on December 3, and the provider recorded a decline on December 5. A separate manual purchase would be a purchase record. For a real test, determine the expected paid-through dates from the billing rules and the original subscription record before checking the result. A failure produces exit code 1, an unverified case produces 2 when no case fails, and an all-pass run exits with 0.

This checks the billing records you supply. For the same accounts, verify separately that successful payments grant or preserve membership in both chats, that a canceled subscription retains its paid time, and that access ends in each chat when the platform's policy says it should.

What would decide the choice

First confirm that the payment provider can onboard your business and accept the method your buyers use. Then compare the platform plan and any processor costs separately. Both services' pricing pages say they charge no per-payment platform fee. Nemiling counts qualifying turnover across the account's projects. InviteMember lists monthly sales caps and project limits by plan. Nemiling pricing · InviteMember pricing

If you already run a paid community, check how existing access and renewing contracts would move. For example, InviteMember says existing recurring subscriptions cannot be imported. Its pricing FAQ lists a new purchase, an access code, and whitelisting as ways to handle existing members. Those options address membership during migration. Confirm separately how each recurring charge will continue or be set up again. InviteMember migration FAQ

I would choose the setup that can show the right result on three records for the same subscriber: the provider's charge, the platform's plan and paid-through date, and their actual membership in both Telegram chats. Run that check for the first payment and again after a renewal or a cancellation.

Top comments (0)