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 -

nginx - phpPgAdmin - log in works but I have to login again after clicking on any links -