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
Post a Comment