Comments (11)
And for text only??
another valid type is nofile
i added the feature, then I saw your comment !😅
from tgcf.
This feature can be used by using the filter
plugin and specifying the files you want to filter
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 nofile
, you may add nofile
to whitelist or blacklist, just like the other types.
from tgcf.
And for text only??
from tgcf.
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.
from tgcf.
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?
from tgcf.
Hi @tissole, please experiment, and answer your own questions.
I will add more details in the wiki soon.
from tgcf.
OK. I will blacklist (gif, sticker, video-note, contact, no file). Curious about the results.
from tgcf.
wow!!! thank you:)
from tgcf.
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.
Hi @aahnik , I have tested new version of tgcf 0.1.28
.
Review For tgcf 0.1.28
.
I have checked all filters ( audio
,gif
, video
, video
, note
, sticker
, contact
, photo
, document
, nofile
) are working perfectly.
whitelist
and blacklist
for users , text and file are also working good.
In past
mode, delay
is also working for different values.
In live
mode, delete_sync
is working.
But delete_sync
won't work for previous messages if bot will restart. And, It will also not work,
if admin will delete multiple messages in source
at once, then only the first message will get deleted in dest
, not all.
from tgcf.
thank you @ankit-sinha-18 for your review. this is very helpful.
if admin will delete multiple messages in source at once, then only the first message will get deleted in dest , not all.
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
from tgcf.
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?
from tgcf.
Related Issues (20)
- Redirection not working HOT 8
- How to forward from private channels in which user is a subscriber but doesn't have invite link of it HOT 1
- It no longer works! ded repo don't waste ur time on this repo, dev doesn't care anymore. HOT 2
- Update tgcf 1.1.8 dependencies (rich 13.7.0)
- Docker Container Lost Settings after Restart or container HOT 4
- Topics Support HOT 9
- Security error while unpacking a received message HOT 1
- Please add filter option for each and every connection seperately
- ERROR: Failed building wheel for Pillow
- docker image pull HOT 1
- desktop mode unable to scroll for new connections after 7 connections
- Plugin to prevent forwarding of recent duplicate messages
- Doesn't work for big channels HOT 12
- Setting Port Number HOT 5
- tgcf-web can't auto-start tgcf HOT 1
- tgcf update HOT 2
- The issue with activating the bot. HOT 1
- "tgcf-web" command gives this error on Mac HOT 4
- Set custom thumbnail to forwarded videos
- Autoforward not working with big channels with lots of subscribers. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tgcf.