Grommash9 / tg_chat_mate

https://grommash9.github.io/tg_chat_mate/
MIT License
5 stars 6 forks source link

Endpoint for lazy loading for messages #18

Open Grommash9 opened 11 months ago

Grommash9 commented 11 months ago

On chat opening load only 10-15 last messages to prevent loading all the results, so it should work faster on long chats. On scrolling up we should count how many messages we already have and use offset param to get more messages and show it to user, so user will be able to see more content on scrolling messages list

Grommash9 commented 11 months ago

This issue is only about creating bot api endpoint, maybe we should pass last known message ID and limit how many messages we want get