Enable replies on Twitter and Telegram
By default, when a product is available, a notification is sent. When that same product is not available, a reply is sent to the original message. With tons of notifications, replies might be seen as flooding. This commit adds an option to explicitly enable replies on Twitter and Telegram notifiers. By default, reply messages are disabled. Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
26eb0af9ea
commit
305b3eeb76
4 changed files with 41 additions and 31 deletions
|
|
@ -131,10 +131,12 @@ Options:
|
|||
* `access_token`: authentication token generated for your Twitter account
|
||||
* `access_token_secret`: authentication token secret generated for your Twitter account
|
||||
* `hashtags`: list of key/value used to append hashtags to each tweet. Key is the pattern to match in the product name, value is the string to append to the tweet. For example, `{"twitter": {"hashtags": [{"rtx 3090": "#nvidia #rtx3090"}]}}` will detect `rtx 3090` to append `#nvidia #rtx3090` at the end of the tweet.
|
||||
* `enable_replies`: reply to original message when product is not available anymore
|
||||
* `telegram` (optional):
|
||||
* `channel_name`: send message to a channel (ex: `@channel`)
|
||||
* `chat_id`: send message to a chat (ex: `1234`)
|
||||
* `token`: key returned by BotFather
|
||||
* `enable_replies`: reply to original message when product is not available anymore
|
||||
* `include_regex` (optional): include products with a name matching this regexp
|
||||
* `exclude_regex` (optional): exclude products with a name matching this regexp
|
||||
* `browser_address` (optional): set headless browser address (ex: `http://127.0.0.1:9222`)
|
||||
|
|
|
|||
Reference in a new issue