-
-
Notifications
You must be signed in to change notification settings - Fork 795
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
Filtering by file type #120
Comments
This feature can be used by using the example inside your config file: plugins:
filter:
files:
whitelist: [document] you can use a blacklist instead of a whitelist also blacklist: [video] The valid file types are : audio
gif
video
video_note
sticker
contact
photo
document
nofile if a message has no files in it, then the type is |
And for text only?? |
another valid type is i added the feature, then I saw your comment !😅 |
hi @ankit-sinha-18 @warmkenley @ThatDevCoder make sure to use the latest tgcf 0.1.27 or above, to test this feature! and please help me by sharing tgcf on social media. |
Thank you for this update, I will test the new feature and give feedback. But I have a few questions. How about the archives? They are in the document category? Non-streamable videos or videos sent as files, belong to video type? Does the document category include pdf, epub, mobi? |
Hi @tissole, please experiment, and answer your own questions. I will add more details in the wiki soon. |
OK. I will blacklist (gif, sticker, video-note, contact, no file). Curious about the results. |
wow!!! thank you:) |
Hi @aahnik , I have tested new version of Review For I have checked all filters (
In In |
thank you @ankit-sinha-18 for your review. this is very helpful.
this is a critical piece of information, and I did not know this. thanks for your help! i have create a new issue for this #128 |
Hi , If a message contains both image and text.. Is this possible to block the image only and send the text to the destination channel? |
allow only certain types of files, or ban certain types of files.
this is requested by multiple people #116 , #61 , #6
The text was updated successfully, but these errors were encountered: