writeChatType

inline fun <T> OutputStream.writeChatType(chatType: Chat.Type<T>)