Bot configuration using UI tools
This guide walks you through setting up your own decentralized video streaming service using the Telegram Media Bot. The guide is suitable for both technical and non-technical users.

Requirement

1. Upload your files

Content should be organised as follows in your desktop’s file system:

2. ConfigurING the bot

  • Got to the bot: Telegram STG DDC Streaming Bot
  • Start configuration by typing
    /start
    You will see
  • Share your channel with the bot by clicking Share channel .
    Select your channel. In my case it is SKTestTube
  • Start configuration by retrieving the Bot  public key
    • Click Set Bot Access token to get the bot public key. You will see a message from the bot with its public key in hex formatde of a div block.
      Generate access token for public key from the next message and send it to me in hex format
      
      
      0x08fc09ba94bc4778cbe9fdb539abb549143b42b74fb124167a0d9ad2c03b1404
    • Copy the public key for now
  • Login to Global Access Registry app using your Cere Wallet
    You did not share any access yet, so the list is empty.
  • Start sharing access to your private bucket with the bot by pressing Share Access
  • Press Share Access and you will see the access record in the list where you can copy the access token
  • Send the token to the bot
    You will see this message from the bot
    Access token is configured for channel. Bucket id is 617, expires in 30d
  • Configure your payouts address by pressing Set payouts address
    • Send your TON wallet address to the bot and it should respond you with this message (should include your address 🙂):
    Payouts address set to UQC...RbL5X
  • Configure your subscription by clicking on the ‘Configure subscriptions’ button.
    • Send the length of subscription
    • Send the description
    • Send the subscription price
  • Check the bot configuration by pressing Check configuration button. You should see something like this
    Config for channel "SKTestTube":
    Bot access token is configured
    Payouts address is configured
    Number of videos: 0
    You are all set. Share this link in your channel:
    https://t.me/STG_DDC_Streaming_Bot/cere?startapp=-1002333928722
  • Done! The bit now has access to your private bucket and can pass user payments to your wallet 👍

3. Add the bot to the channel

You will need to add the Cere Media Bot (@STG_DDC_Streaming_Bot) to your channel, and  provided it with admin rights. For more info on how to provide a bot with admin rights, expand the toggle below

Step 1: Add your Telegram Bot to your Group

The first step is to add a Telegram Bot to the group.
In Telegram, go to your Telegram group and click on the top bar:

Click on Add:

And fill in the name of your Telegram group bot:

Step 2: Make your Bot Administrator of the Group

The next step is to make your bot an admin of the Telegram group.
After you’ve added your bot, you can just click on Edit in your Telegram Group settings:

Choose for Administrators:

And click on Add Admin:

Select your Telegram Bot:

And then give it all the rights and click on Done:

Now, your Telegram Bot automatically replies to messages in your Telegram group!

What if your bot only responds when someone mentions it?

If your Telegram bot has no access to messages and only responds to mentions, change the privacy settings. This is a common issue for many users learning how to add bots to Telegram group for the first time.

When you do that, the bot will respond to all messages in the group.

To change the privacy settings, search for “Botfather” in Telegram. Then, start a conversation with him:

And then type in the command /mybots and select your Telegram Bot:

Click on Bot Settings:

And select Group Privacy:

And then click on Turn off to disable the privacy mode of your bot:

4. Add videos

Now lets add the videos and thumbnails to the bot
  • Click Add Video button in the bot configuration menu. It will ask you to send him the video URL.
  • Copy the previously uploaded video1 URL (Bot configuration using UI tools - Videos ) and send it to the bot.
  • Then the bot will ask you to sent the video title and description. We will use random words.
  • The it will ask you to send the video thumbnails URL. We already have for the video1 (Bot configuration using UI tools - Thumbnails ) - send it to the bot.
  • Done! You added the first video 👍
  • Repeat steps 1-4 for the second video.
  • Check the bot configuration by clicking Check configuration in the bot menu. You should see:
    Config for channel "SKTestTube":
    Bot access token is configured
    Payouts address is configured
    Number of videos: 2
    You are all set. Share this link in your channel:
    https://t.me/STG_DDC_Streaming_Bot/cere?startapp=-1002333928722
  • Congratulations 🎉 You have configured your own decentralized YouTube!!!
  • Share the link in your channel
    https://t.me/STG_DDC_Streaming_Bot/cere?startapp=-1002333928722
  • Enjoy !!!