Added parameters check for getInboxMessageById and getSentMessageById API commands