middleware constructor in Bot