Solution Guide

TG Casino Integration Bot

A full casino companion bot deeply integrated with your platform — login, deposit, withdraw, balance, promotions, game shortcuts and auto-login to your website, all inside Telegram.

Try sample bot: @Jaya99casino_bot

What the Casino Bot can do

A complete in-chat experience that mirrors the most-used features of your casino site.

01

Login & session refresh

Players log in with their casino credentials. The bot stores and auto-refreshes the session token in the background.

02

User profile

Shows username, phone, email, balance and VIP level — all pulled from your platform.

03

Wallet balance

Real-time main balance, free credit and total balance — checked any time without leaving Telegram.

04

Deposit flow

Loads deposit payment options (banks, e-wallets, etc.) directly from your cashier and submits deposits in-chat.

05

Withdraw flow

Lists the player's saved bank accounts and submits withdrawal requests to your platform.

06

Deposit & withdraw history

Paginated history of deposits and withdrawals with amount, status and date.

07

Game shortcuts

Lists game types pulled from your platform and routes players to the right game with one tap.

08

Promotions

Loads the active promotion list per language and lets players claim or open promo pages directly.

09

Auto-login to website

Generates a one-time login URL so players land directly inside their account on your latest website.

10

Referral tracking

Counts total members under each referral / agent code via your ads API.

APIs you need to provide

The Casino Bot consumes the following endpoints from your platform. You don't need to build them all from scratch — if you already have similar APIs, share the docs and we'll adapt to your format.

Global Rule: Authentication

Rule 01

Request Format

Standard request format: all calls go to your API_URL base, authenticated with an X-Api-Key header and Authorization: Bearer <token>.

Language is passed via the Language header (en or ms).

Token Refresh

The bot stores the player's username + password (encrypted) and re-calls /login to refresh the token automatically when it expires.

Request Header
GET{API_URL}/telegram/...
X-Api-Key:YOUR_SECRET_KEY
Authorization:Bearer YOUR_ACCESS_TOKEN
Language:en

Already have your money site API docs? Send docs to us — we'll review and let you know whether we can integrate. If feasible, the build typically takes 3–4 weeks from confirmation to go-live.

Technical API Reference

MethodEndpointDescription
POST{API_URL}/loginAuthenticate the player using username + password and receive a session token.
GET{API_URL}/telegram/getUserInfoReturn the player's account info (username, phone, email, balance, VIP level, etc.).
GET{API_URL}/telegram/userBalanceReturn the player's main balance, free credit and total balance.
GET{API_URL}/telegram/depositInfoV2Return the available payment channels (banks / e-wallets) for deposits.
POST{API_URL}/telegram/depositSubmit a deposit request from the player to your platform.
GET{API_URL}/telegram/depositHistoryReturn a paginated list of the player's past deposits (id, amount, status, date).
POST{API_URL}/telegram/withdrawSubmit a withdrawal request using the player's saved bank account.
GET{API_URL}/telegram/withdrawHistoryReturn a paginated list of the player's past withdrawals (date, amount, status).
GET{API_URL}/telegram/gameTypeReturn the list of game categories / providers available to the player.
GET{API_URL}/telegram/promotionListReturn the active promotions list. Localised by Language header (en / ms).
POST{API_URL}/telegram/oneTimeTokenGenerate a one-time login token + return the latest website URL the player should be redirected to.
GET/api/ads/total-member-under-the-referral-code/{referral_code}Return the total members registered under a given referral / agent code.

Bot Connect

1

Create a bot with @BotFather

Open Telegram, message @BotFather, run /newbot, choose a name, and grab the HTTP API token.

2

Add your bot token to TeleFlies

In your TeleFlies dashboard, go to Bot Connect → paste your token → save.

3

Provide your casino API base URL & key

Share your API_URL, X-Api-Key, and the endpoint paths for all required APIs.

4

Test & go live

Run end-to-end test flows. Once verified, share your bot link with players.

Delivery timeline

3-4 Weeks
1

Step 1 (Day 1)

Share your API docs for integration review.

2

Step 2 (2–3 days)

Review specs & finalize mapping.

3

Step 3 (3–4 weeks)

Build, QA, UAT, and final go-live.