Max timeout

Hi!

I have currently facing a timeout error when I try to get the messages of a group channel. I have configured a timeout of 1 second and there are some intervals of the day when I got a bunch of timeouts when I try to retrieve the messages, but more than just increase the timeout empirically I would like to know what is the max timeout in order to adjust the same value by my side.

Thanks in advance!