Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 14126

Telethon offset id stops before reaching 1

$
0
0

Why does requesting from some large chats or channels suddenly stop, before eaching offset id 1? Example:

[!] Progress for '1234567890': Offset ID is: 1 | Total Messages: 1150[!] Progress for '1234567890': Offset ID is: 1 | Total Messages: 13[!] Progress for '1234567890': Offset ID is: 1 | Total Messages: 60[!] Progress for '1234567890': Offset ID is: 1 | Total Messages: 21[!] Progress for '1234567890': Offset ID is: 1 | Total Messages: 36900[!] Progress for '1234567890': Offset ID is: 1 | Total Messages: 94[!] Progress for '1234567890': Offset ID is: 1 | Total Messages: 51[!] Progress for '1234567890': Offset ID is: 1 | Total Messages: 33[!] Progress for '1234567890': Offset ID is: 25718 | Total Messages: 10374[!] Progress for '1234567890': Offset ID is: 14077 | Total Messages: 11980[!] Progress for '1234567890': Offset ID is: 1 | Total Messages: 12254

The 1234567890 number indicates a channel id. I am using the following to print the statements:

print(f"\r[!] Progress for '{entity.id}': Offset ID is: {offset_id} | Total Messages: {total_messages}", end="", flush=True)

Viewing all articles
Browse latest Browse all 14126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>