Skip to content

cere-io/integration-telegram-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

193 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DDC Streaming Telegram Mini App

Telegram Mini Application that allows users to stream content, use a subscription model to get access to content, and verify NFT ownership.

How to run

  1. Install dependencies:

    npm install
  2. Copy environment variables file:

    cp .env.local .env
  3. Start the app for development:

    npm start

Wallet and Authentication

When we launch the application inside Telegram, we use Telegram Identity for authentication. This allows the app to securely identify users via their Telegram account.

On login, you will see a wallet window:

  • Click Create a new wallet.
  • Choose login via Telegram.
  • Grant all necessary permissions.
  • After that, you can start developing and interacting with the app.

Access Campaigns

  1. Open the rob admin panel (stage: https://rob.stage.cere.io/EE/admin/login.php, prod: https://rob.cere.io/).

  2. Hover over the Campaigns tab and choose Campaigns Old.
    Campaigns Old

  3. You will see a list of available campaigns and their IDs.
    Campaigns List

  4. Find the campaign you need and add its campaignId as a URL parameter to your running app:
    http://localhost:5174/?campaignId=168

  5. You will see a login window for your wallet. Click Create a new wallet, choose login via Telegram, grant all necessary permissions, and start developing.

    Step 1
    Step 2

Build for production

  1. Run the build command:

    npm run build

How to deploy

Merge changes into the dev or master branch. These standard CI jobs will deploy the app to the appropriate environment.

About

Telegram Mini App for content streaming from DDC

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages