Skip to content

Commit

Permalink
Improve description of the option
Browse files Browse the repository at this point in the history
  • Loading branch information
DarthGandalf committed Sep 14, 2024
1 parent 9fc4b3c commit ef15159
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ Success! The new status is: DISABLED. /help

```
--admin.group= admin group name, or channel id [$ADMIN_GROUP]
--disable-admin-spam-forward disable forwarding spam messages to admin group [$DISABLE_ADMIN_SPAM_FORWARD]
--disable-admin-spam-forward disable handling messages forwarded to admin group as spam [$DISABLE_ADMIN_SPAM_FORWARD]
--testing-id= testing ids, allow bot to reply to them [$TESTING_ID]
--history-duration= history duration (default: 24h) [$HISTORY_DURATION]
--history-min-size= history minimal size to keep (default: 1000) [$HISTORY_MIN_SIZE]
Expand Down Expand Up @@ -536,4 +536,4 @@ func main() {
}
}
```
```
2 changes: 1 addition & 1 deletion app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ type options struct {
} `group:"telegram" namespace:"telegram" env-namespace:"TELEGRAM"`

AdminGroup string `long:"admin.group" env:"ADMIN_GROUP" description:"admin group name, or channel id"`
DisableAdminSpamForward bool `long:"disable-admin-spam-forward" env:"DISABLE_ADMIN_SPAM_FORWARD" description:"disable forwarding spam messages to admin group"`
DisableAdminSpamForward bool `long:"disable-admin-spam-forward" env:"DISABLE_ADMIN_SPAM_FORWARD" description:"disable handling messages forwarded to admin group as spam"`

TestingIDs []int64 `long:"testing-id" env:"TESTING_ID" env-delim:"," description:"testing ids, allow bot to reply to them"`

Expand Down

0 comments on commit ef15159

Please sign in to comment.