Closed MrCaringi closed 12 months ago
Just for the records,
some findings:
Official API documentation regarding the categories endpoint: https://api-docs.firefly-iii.org/#/categories/listCategory
It seems like there is no way to increase the number of items to be returned by the endpoint, is limited to 50, but it support pagination
I propose two solutions:
ask for the firts page,
and repeat the request for the URL indicated in the element links.next
until there is no more links.next
in the API response
to get the total page number in the first request (without a page value in the query parameter)
meta.pagination.total_pages
this way you can know how many request have to be made in order to get all the categories
Finally, no matter which option is used, I think, in telegram can be implemented pages buttons, i.e (https://t.me/BotFather list of bots)
Regards!
implemented in #23
It is necessary to increase the quantity of categories listed by the bot,
I suggest two options
thanks in advance!