Missing `key` type in group_channel:changed documentation

Hi,

I received the following changes payload in the group_channel:changed webhook:
"changes":[{"key":"channel_type","new":10,"old":9}]

The docs don’t mention this property so I don’t know what it is! And also, I’m getting json decoding errors because they’re ints instead of strings.

Please help!
Thanks

Hi @david,

In this instance, it’s stating that the channel_type changed from 9 to 10, which means it went from a Public Group Channel to a Public Super Group Channel.

I agree that this data is not provided in our docs and I will work with our team to try and make this a bit more comprehensive. I would say that you should not expect the new/old values to be a string or an int as there are scenarios where it could be either depending on the key.

2 Likes