Skip to content

Commit

Permalink
Change IPFS default mode to pinner
Browse files Browse the repository at this point in the history
  • Loading branch information
WaybackBot committed Jul 25, 2020
1 parent adc36d7 commit e19dd17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions telegram.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (cfg *Config) Telegram() {
log.Printf("Authorized on account %s", bot.Self.UserName)

u := tgbotapi.NewUpdate(0)
u.Timeout = 60
u.Timeout = 600

updates, err := bot.GetUpdatesChan(u)
if err != nil {
Expand All @@ -43,7 +43,7 @@ func (cfg *Config) Telegram() {

iaWbrc := &ia.Archiver{}
isWbrc := &is.Archiver{}
ipfsWbrc := &wbipfs.Archiver{IPFSHost: cfg.IPFS.Host, IPFSPort: cfg.IPFS.Port, UseTor: cfg.IPFS.UseTor}
ipfsWbrc := &wbipfs.Archiver{IPFSHost: cfg.IPFS.Host, IPFSPort: cfg.IPFS.Port, IPFSMode: "pinner", UseTor: cfg.IPFS.UseTor}
for update := range updates {
if update.Message == nil { // ignore any non-Message Updates
continue
Expand Down

0 comments on commit e19dd17

Please sign in to comment.