Closed MoLeft closed 1 week ago
Hi @MoLeft I think you are moving toward a solution to the problem, but I think cache is not the best way in this case: what would happen if cache gets cleared before the webhook response is received?
maybe using Telegraph storage system for a stronger persistence?
feel free to open a PR for this and we can work on it ;)
Under normal circumstances, when creating a Keyboard, we might write it like this:
We can then use
this->data->get('data')
inkeyboard_callback_method
to get the value of data. When making the request to the Telegram URL, it might transform into this format:However, I've noticed an issue with this. Telegram doesn't allow this value to exceed 64 characters in length, so we can't use it to pass a lot of data.
In
Laravel
, I've implemented three methods like this to handle large amounts of data:This allows us to set and get data like this:
Although this seems like a solution, it's still not perfect. I hope Telegram can come up with a more ideal solution.