Hi I'm currently using tonapi letting my Telegram bot to listen to account events.

And the get method "/v2/account/{account_id}/events" requires a parameter called "limit" which limits the number of the events it can get

However, if the event of certain account exceed the "limit", the api response starts from the very first events of the account to the "limit"th event.

Considering the max for limit is 1000, if an account has more than a 1000 events, how do I get the latest events ?

Apr 22, 2023, 3:29 PM
Using now() / Logical Time(LT) to filter out duplicate messages, generally, do you only want to query data from an hour, or 15mins ago?

Just an example on JS
Apr 22, 2023, 3:39 PM
In tonapi this getmethod only has a before_lt parameter, but for this instance I think I need something more like "after_lt"
It also has start_date and end_date parameter, but I haven't figure out how do these two work
Apr 22, 2023, 3:42 PM

© 2024 Draquery.com All rights reserved.