Skip to content

When end id is reached can we break the execution? #310

Answered by tissole
kaushalruparel asked this question in Q&A
Discussion options

You must be logged in to vote

I run a test with an 80k msg channel. I forwarded 8 msgs using offset: and end: setting. The script does not hang. So maybe this happens only when you forward a large number of msgs? How many have you tried to forward?

Have you tried to use a delay? Maybe it will solve this flood error.

Currently it forwards end id + 1 message

Also below condition needs to be rewritten
if forward.end and last_id > forward.end:
to
if forward.end and last_id >= forward.end:
to stop exactly at end id.

Yes, I already describe this error in #198. Thanks for the solution, now is working as expected!

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@kaushalruparel
Comment options

@kaushalruparel
Comment options

@tissole
Comment options

@kaushalruparel
Comment options

Answer selected by kaushalruparel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants