# getPreviousMessagesByTimestamp

**URL:** <https://community.sendbird.com/t/getpreviousmessagesbytimestamp/888>\
**Category:** JavaScript\
**Tags:** group-channel, react-js\
**Created:** [September 2, 2020, 4:19pm UTC](https://community.sendbird.com/t/getpreviousmessagesbytimestamp/888 "2020-09-02T16:19:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Taimoor\_Tariq](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/taimoor_tariq/32/462_2.png) [@Taimoor\_Tariq](https://community.sendbird.com/u/Taimoor_Tariq)\
**Post date:** [September 2, 2020, 4:19pm UTC](https://community.sendbird.com/t/getpreviousmessagesbytimestamp/888/1 "2020-09-02T16:19:35Z")

</div>

when using getPreviousMessagesByTimestamp, or  
getPreviousMessagesByID both return the SendBirdException: Invalid parameter.

---

<div class="post-metadata">

**Author:** ![SamKK](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@SamKK](https://community.sendbird.com/u/SamKK)\
**Post date:** [September 4, 2020, 12:20pm UTC](https://community.sendbird.com/t/getpreviousmessagesbytimestamp/888/2 "2020-09-04T12:20:09Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/sendbird/original/1X/29c71f7279e67177237017d256560053bf24fb65.png)  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/sendbird/original/1X/174be5c560ecf0300ab0b1ba6a466b8b3d393e82.png)

You can reference the sendbird.d.ts file in the package to get information on whats available/what you are missing 🙂
