Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Env/ Config File Not Found #1

Open
Ayush7445 opened this issue Aug 8, 2021 · 3 comments
Open

Env/ Config File Not Found #1

Ayush7445 opened this issue Aug 8, 2021 · 3 comments

Comments

@Ayush7445
Copy link

This code doesn't have config/env file add it to make it usable

@SpangleLabs
Copy link
Owner

Heh, yeah, I threw this together a bit.
It requires a config file, config.json like so:

{
  "api_id": 00,
  "api_hash": "---"
}

And a forwarders file, forwarders.json:

{
  "forwards": [
    {
      "source": "123456",
      "destination": "234567"
    }
  ]
}

And then it will update the forwarders.json file with latest_id values as it runs.

I should put this in a readme, but it was just a quick little script I threw together

@Ayush7445
Copy link
Author

Yeah you should add all file and make it Fully deployable on Heroku.

So someone can deploy it and use this.

@SpangleLabs
Copy link
Owner

I've never used Heroku to be honest. I just run this script on my home server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants