python - Checking for new messages -


i'm trying make simple autoreply script. i've made infinite loop request client.get_message_history(entity, limit=10) every second. (hopefully there no more 10 new messages second) check if there new messages , send reply client.send_message

but don't think idea spam telegram servers each second. may there more efficient ways without unnecessary spamming?


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -