8 releases

0.4.0 Feb 16, 2024
0.3.2 Feb 16, 2024
0.3.1 Apr 21, 2022
0.3.0 Feb 9, 2021
0.1.0 Sep 1, 2020

#408 in Network programming

50 downloads per month

MIT license

305KB
1K SLoC

mrktpltsbot

Periodically polls Marktplaats for the specified search queries and notifies the user about new items via Telegram.

Crates.io Crates.io GitHub last commit

Usage

mrktpltsbot <bot-token> -c <allowed-chat-id> ...

Supported commands

  • /subscribe <query>
  • /unsubscribe <subscription ID>
  • /search <query> – preview the top 1 result
  • For a plain text message the bot will suggest you to subscribe to the search query

Allow list

The bot allows only the specified chat IDs to interact with itself. To find out a chat ID you can run the bot without a -c option and send it a message. It will respond with the chat ID that you have to add to the parameters.

Monitoring

The bot supports the --sentry-dsn option to integrate with Sentry.

Dependencies

~22–41MB
~662K SLoC