Slootly Documentation
Everything you need to add subscriptions to your Telegram, Discord, or WhatsApp bot.
New to Slootly?
Start with the 5-minute Quickstart Guide to go from zero to your first subscription check.
What is Slootly?
Slootly is a cross-platform subscription infrastructure for messaging bots. It lets you monetize your bot with Stripe-powered subscriptions using a single SDK that works across Telegram, Discord, WhatsApp, and Slack.
Instead of building payment infrastructure from scratch or routing revenue through crypto intermediaries, Slootly gives you:
- One SDK call to check subscription status
- Hosted checkout powered by Stripe -- no custom payment UI needed
- Direct fiat payouts to your bank account via Stripe Connect
- Cross-platform identity so one subscription works everywhere
- JWT offline verification for sub-millisecond subscription checks
Quick Example
import { Slootly } from '@slootly/sdk';
const gate = new Slootly('sk_live_...');
// In your bot handler:
const sub = await gate.check(userId, 'telegram');
if (sub.active && sub.plan === 'pro') {
// Unlock premium features
} else {
const url = gate.checkoutUrl(userId, 'pro', 'telegram');
bot.sendMessage(chatId, `Upgrade to Pro: ${url}`);
}Core Concepts
Subscription Check
gate.check() returns the user's subscription state: plan, status, active flag, and linked platforms. Results are cached and verified via JWT for speed.
Checkout URL
gate.checkoutUrl() generates a link to Slootly's hosted checkout page. Send it as a button in any bot message. No custom UI needed.
Webhooks
Slootly pushes real-time events (subscription.created, payment.failed, etc.) to your endpoint. Verify signatures and react to subscription changes.
JWT Verification
Subscription tokens are signed JWTs that the SDK verifies offline. No API call needed on every bot interaction. Sub-millisecond latency.