Added functionality for limit and offset in getMessagesByHashtags and byMentions