The command of Esther established these customs for Purim, and it was written in the book.