1. Setup Backend Config Variables - rafsanbasunia/reelnn GitHub Wiki

Setup Backend Config Variables

You have to setup your backend first. This section provides detailed instructions on how to get and setup config variables for the backend. Clone the backend repository here

  • Mandatory variables:

  • DATABASE_URL: Your MongoDB connection string. How to create database using MongoDB Atlas

  • API_ID: Your Telegram API ID -> How to get API_ID and API_HASH

  • API_HASH: Your Telegram API hash -> How to get API_ID and API_HASH

  • BOT_TOKEN: Telegram bot token How to create a telegram BOT

  • OWNER_ID : Search for @userinfobot in Telegram. Start the bot. It will display user id.You can use multiple IDs separated by ( space ).

  • TMDB_API_KEY: The Movie Database API key How to get TMDB API KEY

  • ADMIN_USERNAME : Admin username for the content manager.

  • ADMIN_PASSWORD : Admin password for the content manager.

  • AUTH_CHAT : The id of the group where your video files will be posted/already posted. You can use multiple IDs separated by ( space ). Make sure you added the bot in your group/groups and made it admin. Example: -100123456789 -100234567891

  • LOGS_CHAT : The id of the group where bot logs will be posted.

  • POST_CHAT : The id of the group where bot will post newly added contents with a poster of the content and a caption.

  • SITE_SECRET : Give a random string with alphanumeric values. You need to use this same value in the frontend.

Optional Variables

  • MULTI_TOKENS = Add bot tokens to speed up downloading and streaming files via web.
  • Make sure you've added the bots in your AUTH_CHAT group/groups. Example Usage:
MULTI_TOKENS = {
     1: "BOT_TOKEN_1_HERE",
     2: "BOT_TOKEN_2_HERE",
     Add more tokens as needed with numbering.
}
  • DELETE_AFTER_MINUTES = Set the number of minutes after which files will be deleted from user message.
  • POST_UPDATES = Enable/disable auto-posting.
  • USE_CAPTION = Use file caption vs filename.
  • PORT: Web server port (default: 8080). don't change this if you're deploying to heroku.