Skip to content

Commit

Permalink
Merge pull request #16 from rusq/fix-login
Browse files Browse the repository at this point in the history
Bump mtpwrap
  • Loading branch information
rusq authored May 1, 2024
2 parents 2c8be3c + 7c8d587 commit 9f7ee12
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ require (
github.com/gotd/td v0.101.0
github.com/joho/godotenv v1.5.1
github.com/looplab/fsm v1.0.1
github.com/rivo/tview v0.0.0-20240426173458-c766eefb3803
github.com/rivo/tview v0.0.0-20240429185930-6e1e54f465d4
github.com/rusq/dlog v1.4.0
github.com/rusq/mtpwrap v0.0.5
github.com/rusq/mtpwrap v0.1.1
github.com/rusq/osenv/v2 v2.0.1
github.com/rusq/tracer v1.0.1
github.com/schollz/progressbar/v3 v3.14.2
Expand Down
8 changes: 6 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ github.com/prometheus/procfs v0.12.0 h1:jluTpSng7V9hY0O2R9DzzJHYb2xULk9VTR1V1R/k
github.com/prometheus/procfs v0.12.0/go.mod h1:pcuDEFsWDnvcgNzo4EEweacyhjeA9Zk3cnaOZAZEfOo=
github.com/rivo/tview v0.0.0-20240426173458-c766eefb3803 h1:26AUJmGMCp5z8kiJcB3m5vGyj4Pni8aIjy6Ua6Ind7c=
github.com/rivo/tview v0.0.0-20240426173458-c766eefb3803/go.mod h1:02iFIz7K/A9jGCvrizLPvoqr4cEIx7q54RH5Qudkrss=
github.com/rivo/tview v0.0.0-20240429185930-6e1e54f465d4 h1:4krDj6r/81mUoolXfmdeNJJm/6DA0pBx/L5OqpE+24E=
github.com/rivo/tview v0.0.0-20240429185930-6e1e54f465d4/go.mod h1:02iFIz7K/A9jGCvrizLPvoqr4cEIx7q54RH5Qudkrss=
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/rivo/uniseg v0.4.3/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
Expand All @@ -99,8 +101,10 @@ github.com/rusq/dlog v1.4.0 h1:64oHTSzHjzG6TXKvMbPKQzvqADCZRn6XgAWnp7ASr5k=
github.com/rusq/dlog v1.4.0/go.mod h1:kjZAEvBu7m3+mnJQKoIeLul1YB3kJq/6lZBdDTZmpzA=
github.com/rusq/encio v0.1.0 h1:DauNaVtIf79kILExhMGIsE5svYwPnDSksdYP0oVVcr8=
github.com/rusq/encio v0.1.0/go.mod h1:AP3lDpo/BkcHcOMNduBlZdd0sbwhruq6+NZtYm5Mxb0=
github.com/rusq/mtpwrap v0.0.5 h1:P60fPqSBPGvr26uXbQr2TZhSTOy7N4YzWP9F/YMRfFY=
github.com/rusq/mtpwrap v0.0.5/go.mod h1:e6ZOqg+nzmksTnufSmMA6nlVubphz2hx/3QSGGY5W+s=
github.com/rusq/mtpwrap v0.1.0 h1:7EY/QFi6pAWN1Pa/Vl2UssGUEs2FhpthA6lUNlhPA4A=
github.com/rusq/mtpwrap v0.1.0/go.mod h1:GwUNQiHNKBdpCOqtRx5BXg4LejPSS0lLB3IqCRuiM/I=
github.com/rusq/mtpwrap v0.1.1 h1:vawTRXUhWGbnGUqqaRlnc/bIFFSf2iCFlInbD++COqA=
github.com/rusq/mtpwrap v0.1.1/go.mod h1:GwUNQiHNKBdpCOqtRx5BXg4LejPSS0lLB3IqCRuiM/I=
github.com/rusq/osenv/v2 v2.0.1 h1:1LtNt8VNV/W86wb38Hyu5W3Rwqt/F1JNRGE+8GRu09o=
github.com/rusq/osenv/v2 v2.0.1/go.mod h1:+wJBSisjNZpfoD961JzqjaM+PtaqSusO3b4oVJi7TFY=
github.com/rusq/secure v0.0.4 h1:svpiZHfHnx89eEDCCFI9OXG1Y8hL9kUWUG6fJbrWUOI=
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func run(ctx context.Context, p Params) error {
SessionStorage: &sessStorage,
}

cl, err := mtp.New(p.ApiID, p.ApiHash,
cl, err := mtp.New(ctx, p.ApiID, p.ApiHash,
mtp.WithAuth(authflow.NewTermAuth(p.Phone)),
mtp.WithApiCredsFile(apiCredsFile),
mtp.WithMTPOptions(opts),
Expand Down

0 comments on commit 9f7ee12

Please sign in to comment.