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

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -