chatMessage(recipient, message, type) {
		recipient = Helpers.steamID(recipient);

		type = type || EChatEntryType.ChatMsg;

		if ([SteamID.Type.CLAN, SteamID.Type.CHAT].indexOf(recipient.type) != -1) {
			// It's a chat message
			let msg = ByteBuffer.allocate(8 + 8 + 4 + Buffer.byteLength(message) + 1, ByteBuffer.LITTLE_ENDIAN);
			msg.writeUint64(this.steamID.getSteamID64()); // steamIdChatter
			msg.writeUint64(toChatID(recipient).getSteamID64()); // steamIdChatRoom
			msg.writeUint32(type); // chatMsgType
			msg.writeCString(message);
			this._send(EMsg.ClientChatMsg, msg.flip());
		} else {
			this.chat.sendFriendMessage(recipient, message, {chatEntryType: type});
		}
	}
Sends a chat message to a user or a chat room.
@param {(SteamID|string)} recipient - The recipient user/chat, as a SteamID object or a string which can parse into one. To send to a group chat, use the group's (clan's) SteamID.
@param {string} message - The message to send.
@param {EChatEntryType} [type=ChatMsg] - Optional. The type of the message. Defaults to ChatMsg. Almost never needed.
@deprecated Use SteamUser.chat.sendFriendMessage instead