SilcBuffer silc_channel_payload_encode(const unsigned char *channel_name, SilcUInt16 channel_name_len, const unsigned char *channel_id, SilcUInt32 channel_id_len, SilcUInt32 mode);
Encode new channel payload and returns it as buffer.