serialize

open fun serialize(encoder: <Error class: unknown class>, value: KeyboardButtonPollType)

Crutch due to the fact that direct serialization of objects currently does not work perfectly