Deploy FileStreamBot

Β· 389 words Β· 2 minute read

Requirements πŸ”—

1. Telegram Credentials

Go to https://my.telegram.org/auth

Enter your Phone Number and Click on Next You’ll recieve Confirmation code in your Telegram Account. Enter the Code in Confirmation code Box and Click Sign In

Click on API development tools and Copy App api_id and App api_hash (Warning: Do not share your API details to anyone.)

Start @botfather and create a new bot.

  1. Send /newbot
  2. Send Your Bot’s Name
  3. You will get replay to send username for your bot. Now Send a username end with bot
  4. Copy the Bot Token your received

Send /getid to @myidbot it will reply with your ID

eg: Your own ID is: 849814747

849814747is my ID

Create a New Private Channel

To Create a New Channel: ☰ (if your on mobile Click on Pencil Pencil icon) -> New Channel -> Create or βœ” -> Private Channel -> Save or βœ” -> Add Your Bot Created Using @botfather -> add or β†’

Send a Message to Now Created Channel and Forward it to @message_ids_bot

You will get your Channel ID with reply


2. DATABASE_URL

No Guide Available by Me Below are Some Video and Blog you can use to Create MongoDB URI

  1. Video by me But Outdated you can use this to Create MongoDB URI
  2. MongoDB How to (article)
  3. How To Create MongoDB Database Url (Youtube Video)

3. Heroku Account

Go to https://signup.heroku.com/login and fill as shown in the picture below to signup, then you’ll get a confirmation on your mail, complete the confirmation to activate your heroku account.

Heroku SignUP Page

Deploying app πŸ”—

Open https://github.com/avipatilpro/FileStreamBot

click on Deploy on Heroku : –>

Deploy

Enter Value’s in Given Field’s πŸ”—

  1. App name: `Enter a App Name for your Heroku app`
  2. Choose a region: `choose a location near to you`
  3. Config Vars

  4. API_HASH: API_HASH your received from above step
  5. API_ID: API_ID your received from above step
  6. APP_NAME: Copy-Paste the app name that you just typed above.
  7. BIN_CHANNEL: Channel ID Received from above Step
  8. BOT_TOKEN: BOT_TOKEN your received from above step
  9. DATABASE_URL: mongodb_uri of your MongoDB DataBase
  10. OWNER_ID: Your user id

now click on

deploy_app

Congratulations you have Deployed FileStreamBot Successfully

If Your Facing any Problem contact me: Click Here

comments powered by Disqus