Skip to content

Commit

Permalink
mend
Browse files Browse the repository at this point in the history
  • Loading branch information
richardokonicha committed Jan 19, 2021
1 parent c4502e7 commit ba3554f
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ Sigparser takes the following environment variables or configure .env file in th
Main pair

```python
CHATINPUT=-12345678901234
CHATOUTPUT=-1234567890123
API_HASH = f36c29aaaaa698ecb1e59e31b
API_ID = 127555
CHATINPUT = -12345678901234
CHATOUTPUT = -1234567890123
SESSION = *this would be auto generated at first run*
```

All matching messages from the channel set in the CHATINPUT environment variable
Expand All @@ -35,7 +38,7 @@ is forwarded to the channel set in the CHATOUTPUT environment variable same goes
* Create new Heroku app on your [Heroku account](https://heroku.com).
* Link app to using the gihub option and select the repository
* From terminal set git heroku remote url

```bash
git remote set-url --add heroku https://git.heroku.com/{your_app_name}.git
heroku login
Expand All @@ -54,3 +57,20 @@ is forwarded to the channel set in the CHATOUTPUT environment variable same goes
```bash
heroku ps:scale worker=1
```

## Local setup

---
* Clone repo on local machine

* Create a virtual environment and run the command
```bash
pip install -r requirements.txt
```
* To run program
```bash
python telethon_access.py
```

*On first run you would be asked for your Phone number and a verification code*
*a valid SESSION would be generated and added to your .env file*

0 comments on commit ba3554f

Please sign in to comment.