Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: telegram bot command to filter favorites #60

Open
ffd8 opened this issue Feb 24, 2021 · 4 comments
Open

Feature request: telegram bot command to filter favorites #60

ffd8 opened this issue Feb 24, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@ffd8
Copy link

ffd8 commented Feb 24, 2021

I plan to try and implement something like this for my own usage, but wanted to throw out the idea, incase it's already there or could be done in a better way. Essential issue is, telegram bot is based on our favorites, but maybe you want it to shut up for a while unless the few things your currently interested in appears (time for bread.. or certain restaurant etc). Rather than manually removing favs – could just filter the telegram bot to only report if certain words are found. Like:

/filter_set xxxxx xxxxxx xxxxxx (list of general words in name of listing, with a space/comma after it
/filter_get (lists filters currently used)
/filter_clear (clears the list - maybe not needed, as one could just override with set or turn off)
/filter_on (activates filter, automatically done with /filter_set
/filter_off (disables filter, but leaves list alone)

Or much simpler, if the bot could offer an interactive checkbox (poll?) for your favs to just toggle on/off for notification? If possible, would just need one command like /filter

@marklagendijk
Copy link
Owner

I thought of exactly the same, and was thinking of the same approach you are thinking of.
I only never got to implement it.

So a PR is welcome!

@ffd8
Copy link
Author

ffd8 commented Feb 25, 2021

Researched bot polls, which would be great for simply toggling on/off favs, however a poll is limited to 10 items = gets messy if one has lots of favs, requiring pagination etc.. will give a try on the first idea, setting a filter word list.

@nmatton
Copy link

nmatton commented Sep 30, 2022

@ffd8, You can add the page_size parameter to the request's body. I think that the limit is 400 items though it is quite large enough...

@nurp
Copy link

nurp commented Jul 9, 2024

I have hardcoded the business ids to filter the notifications. If it makes sense to add the the business ids to the config file, I can do it and create pr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants