Code Monkey home page Code Monkey logo

Comments (6)

tissole avatar tissole commented on May 26, 2024 1

Before I made a confusion, I wanted to say that the script forwards 3 messages and then waits for 3s, not that it works 3s and waits for 3s. The script currently forwards ~2000msg in ~10 minutes, so 2000msg/600s/=~3.3msg/s. Where do you get the value of one message? I thought that the script will forward ~3msg/s and then waits for 3s if that is the set value. The rate/speed remains the same, only the delay changes, so even if the delay is set to 10 the script will still forward 3msg/s and then stops for 10s.

I think there is confusion between the speed/rate of msg/s of the script and the delay. Maybe you wanted to say that the script works for 1s and then waits for the set value of s From my calculation if the script sents 3msg/s and then waits for 3s, it will forward 2700msg/h - the flood is triggered because the limit is ~2000msg/h.

Value of 4 gives 2160msg/h, somewhere on the edge. That's why I ask for float value. Or maybe my assumptions are wrong.

from tgcf.

tissole avatar tissole commented on May 26, 2024

Thanks a lot! I will try this little hack to see how it works. So, a value of 3 means the script will work for 3s and then stops for 3s and so on? Only whole numbers work or I can try something like 2.5, 3.3?

from tgcf.

ankit-sinha-18 avatar ankit-sinha-18 commented on May 26, 2024

@tissole Why do you want to get delay for 3.3 sec 😂🤣!!

Btw,only integer value will work ,not the float value.

from tgcf.

aahnik avatar aahnik commented on May 26, 2024

So, a value of 3 means the script will work for 3s and then stops for 3s and so on? Only whole numbers work or I can try something like 2.5, 3.3?

It will forward one message, and then wait for 3s.

And float value is not supported. Why do you need such weird stuff ?

Integer works fine.

from tgcf.

aahnik avatar aahnik commented on May 26, 2024

The rate/speed remains the same, only the delay changes, so even if the delay is set to 10 the script will still forward 3msg/s and then stops for 10s.

why are you complicating stuff @tissole ? why are are you worrying about insane stuff ?

is this simple thing not clear ?

forward one message -> wait -> forward again -> repeat

we can only set a custom wait time. we cannot change the speed at which one message is forwarded.

and stop worrying about rate limits.


i personally don't use this delay feature. rate limit is inevitable. you cant send more messages than allowed.


end of discussion.

i don't want to waste a single more second on this issue.

from tgcf.

aahnik avatar aahnik commented on May 26, 2024

hi @tissole, from the next version (wait for the next release) you can set a float value.

I have already updated the code, but it will be published in the package registry after the next release. (possibly this week)

from tgcf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.