Button responses very slow

I have a bot running on amazon ec2 instance. The bot is working fine. But it takes time to reply. Could someone tell me what could be the reason?